Your assign should be new_material_review.material = material_instance
instead of new_material_review.material_instance = material_instance that you have now On Sat, Mar 9, 2019 at 4:29 AM Chukwunonso Nwankpa <[email protected]> wrote: > Good Morning. > I'm new to django and currently using the framework for a pet project. > > I am currently trying to implement a review system. > Whereby a user can see reviews on an item and also leave a review on > the item. > > When I try posting a review from the user end it returns the error seen on > the screenshot > From the admin area, I can add reviews without errors popping up. > > Please, I need help in resolving it. > Any help would be much appreciated. > Thanks in anticipation > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/80453449-006b-479b-9439-e6f7a5ec30dc%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/80453449-006b-479b-9439-e6f7a5ec30dc%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALn3ei0%2B82W8qmJ-TemTEJzwbjyowfn3REZ%2Bv1qm4jzJDJWt0w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

