Thank you very much
man I can like this framework like a lot.... I end up with:
class MyModel(ListView):
...
q = self.request.GET.get('q',default='')
country = self.request.GET.get('country',default='')
owner = self.request.GET.get('owner',default='')
self.queryset = CellSite.objects.filter(
Q(name__icontains=q) |
Q(code__icontains=q),
country__istartswith=country,
owner__istartswith=owner,
active__exact=True,
)
response = super(MyModelListView, self).get(request, *args,
**kwargs)
return response
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/db1d4f7e-13c3-4792-a9db-a2c4eb24c3c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.