This:
def mymodel_list(request):
query = models.MyModel.gql('WHERE property=:1',1)
return object_list(request, query)
Results in exception: 'GqlQuery' object has no attribute 'model'
Template name auto-generation when template_name is not passed, does not
work. The quick workaround is:
def mymodel_list(request):
query = models.MyModel.gql('WHERE property=:1',1)
query.model = models.MyModel
return object_list(request, query)
Please patch GqlQuery to provide model.
Original issue reported on code.google.com by janusz.s...@gmail.com on 21 Apr 2009 at 9:21
Original issue reported on code.google.com by
janusz.s...@gmail.com
on 21 Apr 2009 at 9:21