Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Changed output of django-admin.py --version to use a hyphen instead o…

…f parenthesis, to be clearer

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3460 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit aaa3cc0ea3a450deda16da5ab235e6ec9d6e16f9 1 parent 16bdaa7
Adrian Holovaty authored July 27, 2006

Showing 1 changed file with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. 10  django/core/management.py
10  django/core/management.py
@@ -78,7 +78,7 @@ def get_version():
78 78
     from django import VERSION
79 79
     v = '.'.join([str(i) for i in VERSION[:-1]])
80 80
     if VERSION[-1]:
81  
-        v += ' (%s)' % VERSION[-1]
  81
+        v += '-' + VERSION[-1]
82 82
     return v
83 83
 
84 84
 def get_sql_create(app):
@@ -217,7 +217,7 @@ def _get_sql_for_pending_references(model, pending_references):
217 217
 def _get_many_to_many_sql_for_model(model):
218 218
     from django.db import backend, get_creation_module
219 219
     from django.db.models import GenericRel
220  
-    
  220
+
221 221
     data_types = get_creation_module().DATA_TYPES
222 222
 
223 223
     opts = model._meta
@@ -817,10 +817,10 @@ def get_validation_errors(outfile, app=None):
817 817
     from django.db.models.fields.related import RelatedObject
818 818
 
819 819
     e = ModelErrorCollection(outfile)
820  
-    
  820
+
821 821
     for (app_name, error) in get_app_errors().items():
822 822
         e.add(app_name, error)
823  
-        
  823
+
824 824
     for cls in models.get_models(app):
825 825
         opts = cls._meta
826 826
 
@@ -885,7 +885,7 @@ def get_validation_errors(outfile, app=None):
885 885
                         if r.get_accessor_name() == rel_query_name:
886 886
                             e.add(opts, "Reverse query name for field '%s' clashes with related field '%s.%s'. Add a related_name argument to the definition for '%s'." % (f.name, rel_opts.object_name, r.get_accessor_name(), f.name))
887 887
 
888  
-                
  888
+
889 889
         for i, f in enumerate(opts.many_to_many):
890 890
             # Check to see if the related m2m field will clash with any
891 891
             # existing fields, m2m fields, m2m related objects or related objects

0 notes on commit aaa3cc0

Please sign in to comment.
Something went wrong with that request. Please try again.