+ 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
3 Respuestas
+ 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.
+ 2
If it is write upvote please
+ 2
Marked the 1 as best not the 2 because 2 is not a solution