so i have this 2 models (Comment and Park)

Comment has a foreign key to USER and PARK

PARK has a foreign key to Comment

my question is, isn't there going to be a deadlock if i don't have a 
comment or a park created? i mean , in order to create a Park i need to 
have a comment, and in order to create a comment i need a park and a user.

is there a way for me to fix my problem? like allowing the foreign key to 
be null or something like that?

thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/FklnGDoyGXUJ.
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