|
|
@ -1050,7 +1050,7 @@ class HadisCorrectionDetailSerializer(serializers.ModelSerializer): |
|
|
|
|
|
|
|
|
class Meta: |
|
|
class Meta: |
|
|
model = HadisCorrection |
|
|
model = HadisCorrection |
|
|
fields = ['id', 'title', 'slug', 'narrator', 'description', 'translation', 'share_link', 'hadis_info', 'references'] |
|
|
|
|
|
|
|
|
fields = ['id', 'title', 'slug', 'narrator', 'description', 'translation', 'share_link', 'hadis_info', 'references','links'] |
|
|
|
|
|
|
|
|
def get_description(self, obj): |
|
|
def get_description(self, obj): |
|
|
return get_localized_correction_text(obj.text, request=self.context.get('request')) |
|
|
return get_localized_correction_text(obj.text, request=self.context.get('request')) |
|
|
@ -1067,7 +1067,7 @@ class HadisInterpretationDetailSerializer(serializers.ModelSerializer): |
|
|
|
|
|
|
|
|
class Meta: |
|
|
class Meta: |
|
|
model = HadisInterpretation |
|
|
model = HadisInterpretation |
|
|
fields = ['id', 'title', 'slug', 'narrator', 'text', 'translation', 'category_info', 'references'] |
|
|
|
|
|
|
|
|
fields = ['id', 'title', 'slug', 'narrator', 'text', 'translation', 'category_info', 'references','links'] |
|
|
|
|
|
|
|
|
def get_category_info(self, obj): |
|
|
def get_category_info(self, obj): |
|
|
return { |
|
|
return { |
|
|
|