Force instantiation of the user before querying
Without accessing .pk, it's possible for the user object to still be a SimpleLazyObject, which breaks Django's query engine http://stackoverflow.com/questions/11875737/django-filtering-drafts-by-user-causes-error
Showing
Please
register
or
sign in
to comment