#2098: [patch] syncdb fails if models contain ordering fields in format
"table.field"
-----------------------------+----------------------------------------------
Reporter: Alex Dedul | Owner: adrian
Type: defect | Status: new
Priority: normal | Milestone:
Component: django-admin.py | Version:
Severity: normal | Keywords:
-----------------------------+----------------------------------------------
For example with ordering = ('auth_user.username', ) when syncdb is run
you get the following error
{{{
Error: None couldn't be installed, because there were errors in your
model:
intranet.userprofile: "ordering" refers to "auth_user.username", a field
that doesn't exist.
}}}
Patch below fixes this by skipping ordering fields that contains dot.
--
Ticket URL: <http://code.djangoproject.org/ticket/2098>
Django <http://code.djangoproject.org/>
The web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---