Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #7531 -- Modified the sites test so that user-provided initial …

…data doesn't cause breakage when executed from within user applications. Thanks for the report,

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 87a704cf50d4ac122b89a02f5a68f11ad5026524 1 parent 922f62c
@freakboy3742 freakboy3742 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/sites/
4 django/contrib/sites/
@@ -2,8 +2,8 @@
>>> # Make sure that get_current() does not return a deleted Site object.
>>> from django.contrib.sites.models import Site
>>> s = Site.objects.get_current()
->>> s
+>>> isinstance(s, Site)
>>> s.delete()
>>> Site.objects.get_current()
Please sign in to comment.
Something went wrong with that request. Please try again.