EDIT:
Actually, after some further digging it turns out it's worse than I
thought. Unless I'm missing something it looks like there currently isn't
any non-hacky way at all to set a table's schema in django. There are
workarounds that involve SQL escaping hacks such as setting a model's
db_na
Hi,
So currently django seems to take the name of your models (either inferring
it from the model class name or, if provided, it takes it from the model
Meta options), and prepends the name of the app the model belongs to with
an underscore to avoid table name conflicts. It then creates that t
Hiya,
The title says it all. It would be dead useful if you could always use
fields rather than the string name of a field, for example in a QuerySet
order_by(), or in the BaseModelAdmin.ordering class attribute (and probably
many more locations).
This has the huge advantage of avoiding string