diff --git a/server/apps/research/serializers/article_serializer.py b/server/apps/research/serializers/article_serializer.py index c55bd2e..43abe06 100644 --- a/server/apps/research/serializers/article_serializer.py +++ b/server/apps/research/serializers/article_serializer.py @@ -12,7 +12,11 @@ class ArticleSerializer(serializers.ModelSerializer): class Meta: model = Article - fields = '__all__' + fields = [ + 'id', 'slug', 'title', 'authors', 'thumb', + 'categories', 'summary', 'content', + 'status', 'views', 'created_at', 'updated_at' + ] class ArticleCreateUpdateSerializer(serializers.ModelSerializer): """Serializer for creating and updating articles.""" diff --git a/server/apps/research/views.py b/server/apps/research/views.py index f4c2628..b654143 100644 --- a/server/apps/research/views.py +++ b/server/apps/research/views.py @@ -33,7 +33,7 @@ def get_queryset(self): return Article.objects.filter(status='ready') # Custom action to retrieve articles by slug or UUID - @action(detail=False, methods=['get'], url_path='(?P[-\w0-9a-fA-F]+)') + @action(detail=False, methods=['get'], url_path=r'(?P[-\w0-9a-fA-F]+)') def retrieve_by_identifier(self, request, identifier=None): """Retrieve an article by slug or UUID.""" try: @@ -57,4 +57,4 @@ def is_valid_uuid(self, value): uuid.UUID(value) return True except ValueError: - return False \ No newline at end of file + return False diff --git a/server/media/icon_bed.png b/server/media/icon_bed.png new file mode 100644 index 0000000..2a63284 Binary files /dev/null and b/server/media/icon_bed.png differ diff --git a/server/media/images/EIPs-for-Nerds7-EIP-7623-Increase-calldata-cost.BQmoJeoD_tf8U6.webp b/server/media/images/EIPs-for-Nerds7-EIP-7623-Increase-calldata-cost.BQmoJeoD_tf8U6.webp new file mode 100644 index 0000000..db204a7 Binary files /dev/null and b/server/media/images/EIPs-for-Nerds7-EIP-7623-Increase-calldata-cost.BQmoJeoD_tf8U6.webp differ diff --git a/server/media/makeTea.png b/server/media/makeTea.png new file mode 100644 index 0000000..f45fbd1 Binary files /dev/null and b/server/media/makeTea.png differ