This could also be done with Generic Relationships:
http://www.djangoproject.com/documentation/models/generic_relations/
I use this for similiar object references. I also sometimes use
intermediary tables between the base model and the generic_relationship to
limit the types of objects that can
> Thoughts on this approach?
I do this all the time. I call them objrefs (Object References).
My syntax is ..id. If the model_name is unique
across the project (which is normally true), then .id is
also accepted. I also allow for .id..
I have three apps I am getting ready to post that make
django-notification[1] is a django app for managing the notification
of events like "Jacob has accepted your friend request" over multiple
media (email, feeds, web page) regardless of which app was responsible
for the app.
At the moment the notification message is just a text field but
3 matches
Mail list logo