Thursday, March 20, 2014

Re: do I need to run syncdb when I change the default value in a field of a model?


On Sat, Mar 15, 2014 at 7:11 AM, Russell Keith-Magee <russell@keith-magee.com> wrote:

On Sat, Mar 15, 2014 at 7:19 AM, Jonathan Baker <jonathandavidbaker@gmail.com> wrote:
Does that mean that the default="" functionality is implemented by the ORM, instead of in the database layer?

This is correct - Django's "default" argument is an API level default, not a database level default.


@Russ, any specific reasons for this choice?

Regards,
Venkat 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAN7tdFR83z8_zjWdVszavKhUsz%3D3dCiT6kHZjQKcYVKgP6fMDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment