This is a mongodb database design issue, please forward your question to mongodb user mailling list.
AFAIK, it only makes sens if the contact is used nowhere else. 2013/7/2 Hélio Miranda <helio...@gmail.com> > Hi > I have an application in Django-Tastypie and MongoDB, where I have to > enter a club, that club can have multiple contacts. > So I was thinking for the document within the document contact club is the > best option? > > I was trying something like this: > > *class ClubContact (mongoengine.EmbeddedDocument):* > * name = Stringfield ()* > * IntField phone = ()* > * > * > *Club class (mongoengine.Document):* > * name = Stringfield ()* > * Stringfield address = ()* > * email = EmailField ()* > * phone = ListField (EmbeddedDocumentField (ClubContact))* > > Does it make sense? > > -- > 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 django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > 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 django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.