1) apply the python manage. py migrate --fake 2) python manage. py makemigrations and after apply the migrate
On Sat, 12 Oct, 2019, 7:50 PM Kivai Muinde, <muindejosp...@gmail.com> 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/c2c2663e-9025-4751-b5c2-5a497ce8a730%40googlegroups.com > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALfspXLv3TN1py2tde7FLmqPBBToQ0iC%3DKURJEyiL8j-QxOVXw%40mail.gmail.com.