From f42835998188f8cb36a8d9d1aa1645e23b0f2647 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 23 Sep 2019 10:07:19 +0200 Subject: Serialization: add missing content types --- ishtar_common/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ishtar_common/serializers.py') diff --git a/ishtar_common/serializers.py b/ishtar_common/serializers.py index 84108c135..29d6c76bf 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 [Permission, Group] + [ + return [ContentType, Permission, Group] + [ model for model in apps.get_models() if isinstance(model(), models.GeneralType) and ( model.__name__ not in TYPE_MODEL_EXCLUDE) -- cgit v1.2.3