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 -

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -

php - Cannot override Laravel Spark authentication with own implementation -