From 0ee3a655c7a4e4aede5e5eb75a06d36989f10e8d Mon Sep 17 00:00:00 2001
From: Ernesto Rico Schmidt <ernesto@helsinki.at>
Date: Mon, 7 Feb 2022 23:26:03 -0400
Subject: [PATCH] Explicit is better than implicit.

---
 program/serializers.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/program/serializers.py b/program/serializers.py
index 5fcd13eb..9043ecae 100644
--- a/program/serializers.py
+++ b/program/serializers.py
@@ -91,7 +91,7 @@ class UserSerializer(serializers.ModelSerializer):
 class CategorySerializer(serializers.ModelSerializer):
     class Meta:
         model = Category
-        fields = '__all__'
+        fields = ('category', 'abbrev', 'slug', 'is_active', 'description')
 
 
 class LinkSerializer(serializers.ModelSerializer):
@@ -157,31 +157,31 @@ class HostSerializer(serializers.ModelSerializer):
 class LanguageSerializer(serializers.ModelSerializer):
     class Meta:
         model = Language
-        fields = '__all__'
+        fields = ('name', 'is_active')
 
 
 class TopicSerializer(serializers.ModelSerializer):
     class Meta:
         model = Topic
-        fields = '__all__'
+        fields = ('topic', 'abbrev', 'slug', 'is_active')
 
 
 class MusicFocusSerializer(serializers.ModelSerializer):
     class Meta:
         model = MusicFocus
-        fields = '__all__'
+        fields = ('focus', 'abbrev', 'slug', 'is_active')
 
 
 class TypeSerializer(serializers.ModelSerializer):
     class Meta:
         model = Type
-        fields = '__all__'
+        fields = ('type', 'slug', 'is_active')
 
 
 class FundingCategorySerializer(serializers.ModelSerializer):
     class Meta:
         model = FundingCategory
-        fields = '__all__'
+        fields = ('fundingcategory', 'abbrev', 'slug', 'is_active')
 
 
 class ShowSerializer(serializers.HyperlinkedModelSerializer):
-- 
GitLab