It's hackish, but couldn't you override model save and check for
existance of a primary key.

def save(self,*args,**kwargs):
    if not self._get_pk_val():
        return super(UserEmail,self).save(*args,**kwargs)
    else:
        warnings.warn("Attempt to modify registered email %s
rejected.")

If you've got more than email addresses in the model, you might want
to query the db for the email and set the old value before saving any
of the other fields


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to