Removed unused contrib.admin.utils.remove_trailing_data_field().

Unused since 8f30556329.
This commit is contained in:
Tim Graham 2016-10-10 20:43:32 -04:00
parent 80f5a4d87a
commit 4ba206ca63
1 changed files with 0 additions and 9 deletions

View File

@ -502,15 +502,6 @@ def get_fields_from_path(model, path):
return fields
def remove_trailing_data_field(fields):
""" Discard trailing non-relation field if extant. """
try:
get_model_from_relation(fields[-1])
except NotRelationField:
fields = fields[:-1]
return fields
def construct_change_message(form, formsets, add):
"""
Construct a JSON structure describing changes from a changed object.