mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-16 20:00:23 +00:00
Fix Python 2.6 compatibility.
This commit is contained in:
parent
a1088dba52
commit
d797996d13
1 changed files with 1 additions and 1 deletions
|
|
@ -94,4 +94,4 @@ models.signals.class_prepared.connect(add_timeframed_query_manager)
|
|||
|
||||
|
||||
def _field_exists(model_class, field_name):
|
||||
return field_name in {f.attname for f in model_class._meta.local_fields}
|
||||
return field_name in [f.attname for f in model_class._meta.local_fields]
|
||||
|
|
|
|||
Loading…
Reference in a new issue