Site.objects.get_current() returns deleted objects
#7514 lead to find this bug.
>>> from django.contrib.sites.models import Site
>>> s = Site.objects.get_current()
Obviously, the last one should be a DoesNotExist. Patch incoming.
Change History (4)
changed from nobody to Marc Fargas
Ready for checkin