          memo[id(self)] = obj
          return obj
  
      def render(self, name, value, *args, **kwargs):
          from django.conf import settings
          rel_to = self.rel.to
          related_url = '../../../%s/%s/' % (rel_to._meta.app_label, rel_to._meta.object_name.lower())
          self.widget.choices = self.choices
          output = [self.widget.render(name, value, *args, **kwargs)]
          if rel_to in self.admin_site._registry: # If the related object has an admin interface:
 
</s> remove         from django.conf import settings
 </s> add  </s> remove         from django.conf import settings
 </s> add  </s> remove         from django.conf import settings
 </s> add 
          memo[id(self)] = obj
          return obj
  
      def render(self, name, value, *args, **kwargs):

          rel_to = self.rel.to
          related_url = '../../../%s/%s/' % (rel_to._meta.app_label, rel_to._meta.object_name.lower())
          self.widget.choices = self.choices
          output = [self.widget.render(name, value, *args, **kwargs)]
          if rel_to in self.admin_site._registry: # If the related object has an admin interface:
keep keep keep keep replace keep keep keep keep keep
 Fixed #7828 -- Removed some unnecessary imports from admin widgets. Thanks to Julien for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7974 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/contrib/admin/widgets.py