python - MultipleObjectsReturned - django -


get() returned more 1 malwares -- returned 2!

is error i'm getting whilst trying write , run lovely django code.

it appears triggered following command

malwares.objects.update_or_create(name=name) 

what doing wrong here! i'm happy provide more code other parts of program if aid in resolution of issue.

edit:

probably messed database @ point , causing error, fixed truncating database , allowing repopulate


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -