Saturday, October 12, 2019

Re: Multiple foreign Field

Can you give the code so that I can contribute to your project

On Saturday, 12 October 2019 19:50:30 UTC+5:30, Kivai Muinde wrote:
I have two  model  classes, *school* and *profile*.
The school model contains a field called school_level which has several choices( primary, secondary , college,university).

The profile models has four differnt fields (school_primary, school_secondary, school_college,school_university)  each is a foreign key to  the school_level in the school class.

Django, however raises an error when  I try makemigrations. Does any one have an idea on how  to implement   multiple foreign field at the same time.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/91443f45-0cb3-49d4-92ed-a6c164b88fcb%40googlegroups.com.

No comments:

Post a Comment