Could you use an abstract base class to define the address fields and then 
inherit from that?

Sent from my iPhone

> On Oct 2, 2013, at 4:55 PM, Khanh Tran <[email protected]> wrote:
> 
> Lets say both Customer and Business have an Address. In JPA, we can store 
> address attributes(street,city,state,zip) directly inside Customer and 
> Business using @Embedded annotation.Is there an equivalent to @embedded in 
> python without using ForeignKey field. 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/a3cc0fb3-93f1-4759-a30b-b91b22ae47d1%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/510ABBAA-0539-4D5F-A470-AA61704E47C8%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to