Django

Code

Changeset 5015

Show
Ignore:
Timestamp:
04/16/07 19:40:11 (2 years ago)
Author:
adrian
Message:

Fixed #4058 -- Fixed AttributeError? in databrowse with USE_I18N=True

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/databrowse/datastructures.py

    r5011 r5015  
    44""" 
    55 
    6 from django.contrib.admin.views.main import EMPTY_CHANGELIST_VALUE 
    76from django.db import models 
    87from django.utils import dateformat 
     
    133132        so we can accomodate many-to-many fields. 
    134133        """ 
     134        # This import is deliberately inside the function because it causes 
     135        # some settings to be imported, and we don't want to do that at the 
     136        # module level. 
     137        from django.contrib.admin.views.main import EMPTY_CHANGELIST_VALUE 
    135138        if self.field.rel: 
    136139            if isinstance(self.field.rel, models.ManyToOneRel):