I never tried this, but I think you could just delete the value from the form.cleaned_data dictionary, if you don't want it:
if instance.my_field == some_value: del form.cleaned_data['my_field'] This would be in the view, before saving, so you wouldn't need to override anything. - Paulo On Wed, Aug 4, 2010 at 6:05 PM, Sells, Fred <fred.se...@adventistcare.org>wrote: > I would like to prevent saving a new value if the database contains a > specific value. This is on a per field, per record basis. > > If I override the save() method; is there a way to find the existing (in > the DB) values and the new (to be stored) values? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.