Django get() query not working

Posted by pimcoooooooo on Stack Overflow See other posts from Stack Overflow or by pimcoooooooo
Published on 2010-05-27T10:21:07Z Indexed on 2010/05/27 10:21 UTC
Read the original article Hit count: 111

Filed under:

this_category = Category.objects.get(name=cat_name)

gives error: get() takes exactly 2 non-keyword arguments (1 given)

I am using the appengine helper, so maybe that is causing problems. Category is my model. Category.objects.all() works fine. Filter is also similarily not working.

Thanks,

© Stack Overflow or respective owner

Related posts about django-models