I think you're looking for the save-and-delete hooks:
http://www.djangoproject.com/documentation/models/save_delete_hooks/
They will allow you to make the changes before the object is
saved without overriding django's own internal save
functionality.
If I understand this correctly, it's for
I think you're looking for the save-and-delete hooks:
http://www.djangoproject.com/documentation/models/save_delete_hooks/
They will allow you to make the changes before the object is saved without
overriding django's own internal save functionality.
I'm trying to make a RelaxedPhoneNumber field that normalizes
user input to an internal representation of purely digits before
getting saved, and then presents in a particular format. I'm
having trouble finding where to intercept and change the value.
I want to do it on the field level, as I
3 matches
Mail list logo