Skip to content

Commit

Permalink
Merge pull request #340 from indevgr/master
Browse files Browse the repository at this point in the history
fix proxy model inheritance for django >=1.8
  • Loading branch information
deschler committed Oct 27, 2015
2 parents 3df9d3e + 84ff47d commit 97c80d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modeltranslation/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@ def delete_cache_fields(model):
except AttributeError:
pass

if hasattr(model._meta, '_expire_cache'):
model._meta._expire_cache()


def populate_translation_fields(sender, kwargs):
"""
Expand Down

0 comments on commit 97c80d8

Please sign in to comment.