On Wed, Feb 18, 2009 at 6:10 PM, DougC <doug8...@gmail.com> wrote:
> Any thoughts from experienced Django developers?

Two things you might want to look into:

The first is model inheritance
(http://docs.djangoproject.com/en/dev/topics/db/models/#id4). You
could, for example, have an abstract ``TrackedObject`` model and a set
of concrete subclasses for each type of thing to be tracked.

Or, you might want to look at ``django.contrib.contenttypes``
(http://docs.djangoproject.com/en/dev/ref/contrib/contenttypes/),
paying careful attention to generic relations
(http://docs.djangoproject.com/en/dev/ref/contrib/contenttypes/#id1).
This would let you have a generic ``TrackedObject`` object with a
(sort of) foreign key to *any* other object of any type.

Jacob

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to