7👍
Q(pk=None)
works fine.
Q(pk__in=[])
works fine as well and doesn’t hit the database.
- Django app in heroku getting worker timeout error
- Django-registration, template
- Django: How to get data connected by ForeignKey via Template?
Source:stackexchange.com