+ 1

how match two model in html ? (django)

i want create quiz app and question is here. https://stackoverflow.com/questions/65719388/match-two-models-field-django

16th Jan 2021, 11:11 PM
kokito
3 Answers
+ 2
From Django documentation: To compare two model instances, just use the standard Python comparison operator, the double equals sign: == . Behind the scenes, that compares the primary key values of two models. spam.pk == eggs.pk is a good way to do that.
23rd Jan 2021, 9:28 AM
SHASHWAT MANDALI
+ 2
If it is write upvote please
23rd Jan 2021, 9:29 AM
SHASHWAT MANDALI
+ 2
Marked the 1 as best not the 2 because 2 is not a solution
23rd Jan 2021, 9:53 AM
SHASHWAT MANDALI