Skip to content

Commit

Permalink
Support all templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Shruti1229 committed Nov 14, 2023
1 parent d282eb6 commit 3a006d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions backend/newsletter/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@


class NewsletterSerializer(serializers.ModelSerializer):
category = serializers.ListField()
class Meta:
model = Newsletter
fields = ("newsletter_uuid", "submitter_id", "content", "category")
2 changes: 1 addition & 1 deletion backend/newsletter/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class NewsletterViewSet(ModelViewSet):
@is_admin
def create(self, request, pk=None, *args, **kwargs):
category = request.data.get("category")
content = request.data.get("content_1")
content = request.data.get("content")
submitter_id = request.data.get("submitter_id")
template_id = request.data.get("template_id")
BASE_DIR = Path(__file__).resolve().parent.parent
Expand Down

0 comments on commit 3a006d2

Please sign in to comment.