--
Ticket URL: <https://code.djangoproject.com/ticket/16356>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* needs_docs: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_better_patch: => 0
Comment:
I urge you to read Django's documentation to understand how Django works
and clear any confusion with other frameworks :)
More seriously, you have 1-to-1 relations, so you can put the Foreign Key
in either model. Depending on the side of the relation where you put the
foreign, deletes will cascade or not. This is a SQL modeling issue, it
isn't particularly related to Django.
This tracker is appropriate to report bugs in Django. "Django doesn't work
like Hibernate" isn't a bug. For general usage questions, please join
#django on !FreeNode or post to the django-users mailing list.
--
Ticket URL: <https://code.djangoproject.com/ticket/16356#comment:1>
Old description:
New description:
class House(models.Model):
#other fields
http://docs.jboss.org/hibernate/annotations/3.5/reference/en/html/entity.html
#entity-mapping-association
Regards.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/16356#comment:2>