Kaydet (Commit) 87a704cf authored tarafından Russell Keith-Magee's avatar Russell Keith-Magee

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

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, madkinder@gmail.com.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7738 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 922f62c2
......@@ -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
<Site: example.com>
>>> isinstance(s, Site)
True
>>> s.delete()
>>> Site.objects.get_current()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment