diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-24 10:42:46 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-24 10:42:46 +0200 |
commit | 6ed9b198eb5029caada7c87bc16b1dc915f8be9f (patch) | |
tree | 98bdbb382f8b29ea2d93b897e8db43191419b2ea /ishtar_common/serializers.py | |
parent | ff8681360e589ff3c8e63dcef6ad0d31ac8ecab8 (diff) | |
download | Ishtar-6ed9b198eb5029caada7c87bc16b1dc915f8be9f.tar.bz2 Ishtar-6ed9b198eb5029caada7c87bc16b1dc915f8be9f.zip |
Remove (for now) ContentType from serialization
Diffstat (limited to 'ishtar_common/serializers.py')
-rw-r--r-- | ishtar_common/serializers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ishtar_common/serializers.py b/ishtar_common/serializers.py index 29d6c76bf..84108c135 100644 --- a/ishtar_common/serializers.py +++ b/ishtar_common/serializers.py @@ -40,7 +40,7 @@ TYPE_MODEL_EXCLUDE = ["Area", "OperationTypeOld", "ProfileTypeSummary"] def get_type_models(): - return [ContentType, Permission, Group] + [ + return [Permission, Group] + [ model for model in apps.get_models() if isinstance(model(), models.GeneralType) and ( model.__name__ not in TYPE_MODEL_EXCLUDE) |