#23644: Django 1.7: adding order_by to model Meta class causes Django to create
a
meaningless migration
-+-
Reporter: robvdl |Owner: nobody
Type: | Status: closed
Cleanup/optimization | Version: 1.7
Component: Migrations | Resolution: wontfix
Severity: Normal | Triage Stage:
Keywords: migrations | Unreviewed
Has patch: 0| Needs documentation: 0
Needs tests: 0| Patch needs improvement: 0
Easy pickings: 0|UI/UX: 0
-+-
Changes (by bmispelon):
* status: new => closed
* needs_better_patch: => 0
* resolution: => wontfix
* needs_tests: => 0
* needs_docs: => 0
Comment:
Hi,
This is by design, as noted in the last paragraph of
https://docs.djangoproject.com/en/1.7/topics/migrations/#the-commands:
> Django will make migrations for any change to your models or fields -
even options that don’t affect the database - as the only way it can
reconstruct a field correctly is to have all the changes in the history,
and you might need those options in some data migrations later on (for
example, if you’ve set custom validators).
Thanks.
--
Ticket URL: <https://code.djangoproject.com/ticket/23644#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.00b62b13fa4d90d9ceec65a234562afe%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.