python - Model.objects.get returns nothing -


i'm having weird problem when using model.objects.get(op1=1,op2=2)

it raises not exist error although exists. did ever happen anyone?

i checked in logs make sure log happened when id existed in database.

[2015-04-24 20:18:21,106] error: couldn't find model entry: traceback (most recent call last): doesnotexist: npbilling matching query not exist.

and in database, last modified date row 20:18:19.

how possible ever happen?! weird thing works , throws error.

i tried use get_or_create end 2 entries in database. 1 of them created.

thanks in advance help. appreciate fast responses , suggestions.

i solved using transaction.commit() before second query.


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -