Hi people, I got a little problem with the DRY principle. I have a lot of
models with a common attribute: created_by, which is an attribute to store
the user who created that object but, in all my models I have to define the
save() method over and oven again to store the user manually before django
ORM save the object to database. The problem is that I love the DRY
principle and I don't want to repeat the definition of save() method, I just
don't want. Any suggestion here?

-- 
Lic. José M. Rodriguez Bacallao
Cupet
-----------------------------------------------------------------
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo
mismo.

Recuerda: El arca de Noe fue construida por aficionados, el titanic por
profesionales
-----------------------------------------------------------------

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