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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -