From 215e610bf662def4254dbe7d39ee3e0506ce2016 Mon Sep 17 00:00:00 2001 From: mohsentaba Date: Wed, 24 Dec 2025 11:18:15 +0330 Subject: [PATCH] hadis correction page updated. --- apps/hadis/docs.py | 2 ++ apps/hadis/serializers/hadis.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/hadis/docs.py b/apps/hadis/docs.py index 41689c6..a0aaf1c 100644 --- a/apps/hadis/docs.py +++ b/apps/hadis/docs.py @@ -755,6 +755,7 @@ hadis_corrections_swagger = swagger_auto_schema( { "id": 1, "title": "Translation Correction", + "slug":"достоинство-молитвы-и-ее-место-в-религии", "description": "Updated translation for better accuracy and clarity. The previous translation was slightly ambiguous in the context of intention and action.", "translation":"Actions are judged by intentions, and every person will have what they intended", "share_link": 'null' @@ -762,6 +763,7 @@ hadis_corrections_swagger = swagger_auto_schema( { "id": 2, "title": "Authenticity Clarification", + "slug":"достоинство-молитвы-и-ее-место-в-религии", "description": "Additional scholarly notes on the authenticity and grading of this hadith. This hadith is considered authentic (sahih) by consensus of scholars.", "translation":"Actions are judged by intentions, and every person will have what they intended", "share_link": 'null' diff --git a/apps/hadis/serializers/hadis.py b/apps/hadis/serializers/hadis.py index fea14eb..d436427 100644 --- a/apps/hadis/serializers/hadis.py +++ b/apps/hadis/serializers/hadis.py @@ -585,7 +585,7 @@ class HadisCorrectionSerializer(serializers.ModelSerializer): translation = LocalizedField() class Meta: model = HadisCorrection - fields = ['id', 'title', 'description', 'translation','share_link', 'created_at', 'updated_at'] + fields = ['id', 'title','slug', 'description', 'translation','share_link'] class HadisBasicSerializer(serializers.ModelSerializer):