Browse Source

hadis correction page updated.

master
Mohsen Taba 5 months ago
parent
commit
215e610bf6
  1. 2
      apps/hadis/docs.py
  2. 2
      apps/hadis/serializers/hadis.py

2
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'

2
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):

Loading…
Cancel
Save