Sunday, June 10, 2012

how to have admin not generate insert command for a particular field?

hi

how to have admin not generate insert command for a particular field,
so that the field gets its value at database level.
I tried adding `editable=False` to field options of that particular
field in my model, but no luck. also i don't want to use `default`
field option. I need the field to take its value from the default i
have set for it in database table definition.
I have set `Meta.managed=False` for model.

I'm running Django 1.4 and Postgres 8.4

--
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate