[patch] syncdb fails if models contain ordering fields in format "table.field"
|Reported by:||Alex Dedul||Owned by:||Adrian Holovaty|
|Component:||Core (Management commands)||Version:|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.