On Mon, Aug 24, 2009 at 2:46 AM, Mikoskay <mikos...@gmail.com> wrote:

>
> Hi,
>
> Is there any equivalent of C++ union construction for my Django
> models? I know I can do it at low-level, but I hope it's not
> necessary. For example: there's a model Transaction with attribute
> Client pointing to model IndividualClient OR to model CompanyClient.
> How to do that?
>

Take a look at generic relations:

http://docs.djangoproject.com/en/dev/ref/contrib/contenttypes/#id1

Karen

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