Annotate confirmation/util.py.

This commit is contained in:
Tim Abbott 2016-09-10 12:29:08 -07:00
parent 54820de522
commit 06580ca76e
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@ __revision__ = '$Id: util.py 3 2008-11-18 07:33:52Z jarek.zgoda $'
from django.conf import settings
def get_status_field(app_label, model_name):
# type: (str, str) -> str
model = '%s.%s' % (app_label, model_name)
mapping = getattr(settings, 'STATUS_FIELDS', {})
return mapping.get(model, 'status')