Skip to content

Commit

Permalink
Fixed django 1.7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
M1hacka committed Jul 7, 2019
1 parent a52e1fb commit e2fd90f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/django_pg_returning/compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_model_fields(model, concrete=False): # type: (Type[Model], Optional[boo
if concrete:
res = model._meta.concrete_fields
else:
res = model._meta.fields + model._meta.m2m_fields
res = model._meta.fields + model._meta.many_to_many
else:
res = model._meta.get_fields()

Expand Down

0 comments on commit e2fd90f

Please sign in to comment.