cannot append Model.objects.all()

Posted by afriza on Stack Overflow See other posts from Stack Overflow or by afriza
Published on 2010-04-01T12:13:05Z Indexed on 2010/04/01 12:53 UTC
Read the original article Hit count: 168

I cannot run ['abc].append( MyModel.objects.all() ) since it generates exception if MyModel has no entry.

any workaround

© Stack Overflow or respective owner

Related posts about python

Related posts about django