Removed unused contrib.admin.utils.remove_trailing_data_field().
Unused since 8f30556329
.
This commit is contained in:
parent
80f5a4d87a
commit
4ba206ca63
|
@ -502,15 +502,6 @@ def get_fields_from_path(model, path):
|
||||||
return fields
|
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):
|
def construct_change_message(form, formsets, add):
|
||||||
"""
|
"""
|
||||||
Construct a JSON structure describing changes from a changed object.
|
Construct a JSON structure describing changes from a changed object.
|
||||||
|
|
Loading…
Reference in New Issue