Code

Opened 7 years ago

Closed 7 years ago

#3173 closed defect (worksforme)

Symmetrical foreign key/m2m relationship are not possible.

Reported by: brooks.travis@… Owned by: adrian
Component: Core (Other) Version: master
Severity: major Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

I have two models, each with a foreign key or m2m relationship to the other. When I try to validate my project these two apps throw errors, saying that the model referenced as the foreign key does not exist. I think I uderstand why things work this way, but some way of allowing this would be good, as the situation I am presented with truly requires this functionality. I need to be able to create "people" records with a list of affiliated "places", as well as specify a primary contact from "people" for each "place". Thanks.

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by russellm

  • Resolution set to worksforme
  • Status changed from new to closed

If this is a question, it should be directed at the django-users mailing list. If you think you have actually found a bug, still ask around on django users, but provide an complete test case (i.e., a model that fails validation), not just some vague reference to something that might be a problem.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.