Author: adrian
Date: 2006-07-27 12:03:35 -0500 (Thu, 27 Jul 2006)
New Revision: 3460
Modified:
django/trunk/django/core/management.py
Log:
Changed output of django-admin.py --version to use a hyphen instead of
parenthesis, to be clearer
Modified: django/trunk/django/core/management.py
===================================================================
--- django/trunk/django/core/management.py 2006-07-27 16:55:26 UTC (rev
3459)
+++ django/trunk/django/core/management.py 2006-07-27 17:03:35 UTC (rev
3460)
@@ -78,7 +78,7 @@
from django import VERSION
v = '.'.join([str(i) for i in VERSION[:-1]])
if VERSION[-1]:
- v += ' (%s)' % VERSION[-1]
+ v += '-' + VERSION[-1]
return v
def get_sql_create(app):
@@ -217,7 +217,7 @@
def _get_many_to_many_sql_for_model(model):
from django.db import backend, get_creation_module
from django.db.models import GenericRel
-
+
data_types = get_creation_module().DATA_TYPES
opts = model._meta
@@ -817,10 +817,10 @@
from django.db.models.fields.related import RelatedObject
e = ModelErrorCollection(outfile)
-
+
for (app_name, error) in get_app_errors().items():
e.add(app_name, error)
-
+
for cls in models.get_models(app):
opts = cls._meta
@@ -885,7 +885,7 @@
if r.get_accessor_name() == rel_query_name:
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))
-
+
for i, f in enumerate(opts.many_to_many):
# Check to see if the related m2m field will clash with any
# existing fields, m2m fields, m2m related objects or related
objects
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---