Ticket #11129: contenttypes_shortcat_view_sites.patch

File contenttypes_shortcat_view_sites.patch, 524 bytes (added by Sergey Belov, 15 years ago)
  • django/contrib/contenttypes/views.py

     
    5252                    break
    5353
    5454    # Fall back to the current site (if possible).
    55     if object_domain is None:
     55    if object_domain is None and Site._meta.installed:
    5656        try:
    5757            object_domain = Site.objects.get_current().domain
    5858        except Site.DoesNotExist:
Back to Top