diff --git a/auditlog/models.py b/auditlog/models.py index 8c4a73c..5192db2 100644 --- a/auditlog/models.py +++ b/auditlog/models.py @@ -310,7 +310,7 @@ class LogEntry(models.Model): values_display = [] # handle choices fields and Postgres ArrayField to get human readable version choices_dict = None - if getattr(field, "choices") and len(field.choices) > 0: + if getattr(field, "choices", None) and len(field.choices) > 0: choices_dict = dict(field.choices) if ( hasattr(field, "base_field")