Loading django/contrib/admin/checks.py +0 −9 Original line number Diff line number Diff line Loading @@ -776,15 +776,6 @@ class ModelAdminChecks(BaseModelAdminChecks): if field_name not in cls.list_display: return refer_to_missing_field(field=field_name, option=label, model=model, obj=cls, id='admin.E122') checks.Error( "The value of '%s' refers to '%s', which is not contained in 'list_display'." % ( label, field_name ), hint=None, obj=cls, id='admin.E122', ), elif cls.list_display_links and field_name in cls.list_display_links: return [ checks.Error( Loading django/template/loader.py +0 −1 Original line number Diff line number Diff line Loading @@ -110,7 +110,6 @@ def render_to_string(template_name, context=None, raise ValueError( "render_to_string doesn't support the request argument " "when some deprecated arguments are passed.") continue # Hack -- use the internal Engine instance of DjangoTemplates. return engine.engine.render_to_string( template_name, context, context_instance, dirs, dictionary) Loading Loading
django/contrib/admin/checks.py +0 −9 Original line number Diff line number Diff line Loading @@ -776,15 +776,6 @@ class ModelAdminChecks(BaseModelAdminChecks): if field_name not in cls.list_display: return refer_to_missing_field(field=field_name, option=label, model=model, obj=cls, id='admin.E122') checks.Error( "The value of '%s' refers to '%s', which is not contained in 'list_display'." % ( label, field_name ), hint=None, obj=cls, id='admin.E122', ), elif cls.list_display_links and field_name in cls.list_display_links: return [ checks.Error( Loading
django/template/loader.py +0 −1 Original line number Diff line number Diff line Loading @@ -110,7 +110,6 @@ def render_to_string(template_name, context=None, raise ValueError( "render_to_string doesn't support the request argument " "when some deprecated arguments are passed.") continue # Hack -- use the internal Engine instance of DjangoTemplates. return engine.engine.render_to_string( template_name, context, context_instance, dirs, dictionary) Loading