lots of updates ... eeks
This commit is contained in:
@@ -67,9 +67,10 @@ class CalSerializer(serializers.ModelSerializer):
|
||||
|
||||
class PromoSerializer(serializers.ModelSerializer):
|
||||
organization = OrganizationSerializer(many=False)
|
||||
promo_emoji = serializers.CharField(source='get_promo_type_display')
|
||||
# event_type = serializers.CharField(source='get_event_type_display')
|
||||
class Meta:
|
||||
model = Promo
|
||||
# fields = ('id', 'title', 'organization', 'promo_type', 'long_text', 'short_text', 'overlay_image', 'target_link')
|
||||
fields = '__all__'
|
||||
fields = ('id', 'title', 'organization', 'promo_type', 'long_text', 'short_text', 'promo_image', 'target_link', 'promo_emoji')
|
||||
# fields = '__all__'
|
||||
depth = 2
|
||||
Reference in New Issue
Block a user