def remove_trailing_data_field(fields):
    try:
        get_model_from_relation(fields[-1])
    except NotRelationField:
        fields = fields[:-1]
    return fields
Return whether or not the length of given string is within a specified
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/contrib/admin/util.py/remove_trailing_data_field--crossover with--dataset/ETHPy150Open SickRage/SickRage/lib/validators/length.py/length