Saturday, April 28, 2012

Re: Does adding editable=False to model require a data migration?

On Apr 27, 7:34 pm, Micky Hulse <rgmi...@gmail.com> wrote:
> From the docs:
>
> editable
> Field.editable
> If False, the field will not be editable in the admin or via forms
> automatically generated from the model class. Default is True.
>
> So, it reads like I can add the editable argument to the field without
> having to migrate my data?

Sounds like it. If you are using South then you can also run
"manage.py schemamigration <appname> --auto" and South will tell you
whether it thinks a schema migration is required. If it isn't an
nothing about the semantics of your data has changed, then you also
don't need a data migration.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment