Go to Django 1.10. Remove support for Django 1.9.

This commit is contained in:
Griatch 2017-06-06 18:45:41 +02:00
parent cdeffc1f08
commit ce3558d654
5 changed files with 6 additions and 255 deletions

View file

@ -77,7 +77,7 @@ class SharedMemoryModelBase(ModelBase):
"""
# the dbmodel is either the proxy base or ourselves
dbmodel = cls._meta.proxy_for_model if cls._meta.proxy else cls
dbmodel = cls._meta.concrete_model if cls._meta.proxy else cls
cls.__dbclass__ = dbmodel
if not hasattr(dbmodel, "__instance_cache__"):
# we store __instance_cache__ only on the dbmodel base