32👍
✅
‘QuerySet’ object has no attribute ‘pop’
You can see the details about Queryset
You can try:
Yourmodel.objects.exclude(lugar="Quito")
to filter the queryset, more details here Retrieving objects¶
- [Django]-Redirect / return to same (previous) page in Django?
- [Django]-How do I rename a Django project in PyCharm?
- [Django]-ImportError: bad magic number in 'time': b'\x03\xf3\r\n' in Django
0👍
pop
ping from set()
or list()
worked out for me:
quito_set = set(quito)
quito_item = None
while quito_set:
quito_item = quito_set.pop()
if quito_item is OK:
break
- [Django]-Create custom buttons in admin change_form in Django
- [Django]-How to configure Django on OpenShift?
- [Django]-Check permission inside a template in Django
Source:stackexchange.com