On Wed, Jul 13, 2011 at 4:05 PM, Slafs <slaf...@gmail.com> wrote: > Hello. > > I have a model in Django that is based on database view. One of the fields > is "virtual" (computed in the view) . > I would like to exclude this field in my model from being used in SQL Insert > and Update statements. > > Do You know maybe how can I do that ? > > Regards
Models based on views are not explicitly supported, but should work well in practice (use managed=False in the meta class). Virtual computed 'fields' are definitely not supported for update/insert. Cheers Tom Cheers Tom -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.