Dear Django users, I am would like to set a default value on a model's field as a result of a simple query. Something that in SQLAlchemy is done like that: http://docs.sqlalchemy.org/en/rel_0_7/core/schema.html#sql-expressions
Specifically I want to count some objects in the database and set this count as the default value. I know that this can be done in two steps first find the value then set it, but I would like to have it done automatically. Best regards, Marcin -- 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+unsubscr...@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. For more options, visit https://groups.google.com/groups/opt_out.