Your proposed solution is exactly what I did. I think the official
term is a 'mixin class'. It's worked out really well so far. In my
case the mixin class looks for the Event class defined in the model
for various settings. In your case they might contain a mapping
between your mixin model data and the model fields if you don't want
to hard code them in the mixin.
from events import eventmixin
class Site(models.Model,eventmixin.EventMixin):
-snip model stuff -
class Event::
keyword = 'site'
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---