Thanks a lot for that tip. I actually read over the Generic Foreign Keys several times before I asked the question but it still left me pretty confused. Is there a place I can see a good, straight-forward example of how this works? The "tags" example they had just didn't do it for me. Plus, they didn't really show how to call it from a command line which would be important to me.
On Sun, Sep 11, 2011 at 4:32 AM, Daniel Roseman <dan...@roseman.org.uk>wrote: > > On Sunday, 11 September 2011 00:18:28 UTC+1, Kurtis wrote: >> >> Hey Guys, >> >> I have a very simple stub of a project. I'm trying to do something >> that should be very simple but isn't as easy as I hoped. >> >> I have a UserProfile class. This object is basically just an extension >> of the standard User Class. Within my UserProfile class, I want to >> have a list of PublicProfile foreign keys. PublicProfile itself is an >> abstract class with multiple classes extending it. For example, a User >> can create an ArtistProfile, a BandProfile, etc... >> >> To give you a sense of what I'm trying to accomplish from a user's >> perspective: A user can sign up and create multiple Pages (represented >> as PublicProfile) for bands, artists, etc... >> >> > > Sounds like you want [generic relations]( > https://docs.djangoproject.com/en/1.3/ref/contrib/contenttypes/#generic-relations > ). > -- > DR. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/MbkMEt65QFcJ. > > 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. > -- 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.