Mohsen Taba
900b547728
feat(hadis): add gender option to Transmitters model, serializers, admin, and XMind view
- Add GenderChoices (male/female) field to Transmitters model with migration 0052
- Include gender across public and admin transmitter serializers
- Expose gender in TransmittersAdmin filter and list display
- Propagate transmitter gender in HadisCategoryXMindView flowchart payload
- Add split_transmitters_gender management command
2 weeks ago
Mohsen Taba
bb5c57d0b7
feat(hadis): implement is_topic architectural separation for categories and topics
- Add is_topic boolean field to HadisCategory model with indexing
- Enforce validation rules in clean():
* Topics cannot have children and must define a source_type
* Structural categories cannot contain hadiths and have source_type=None
* Parents cannot be topics
* Hadiths can only be attached to topics (is_topic=True)
- Update admin serializers and views to support is_topic filtering and mapping
- Expose is_topic in public category serializers (SimpleCategory, HadisCategorySelectSerializer, CategorySerializer)
- Include migration 0051_add_category_is_topic
2 weeks ago
Mohsen Taba
245098f356
feat(hadis): add multi-category M2M support with full backend integration
Models:
- Hadis: add categories ManyToManyField to HadisCategory (related_name=hadis_items)
- Hadis.clean(): validate that none of the M2M categories have subcategories
- HadisCategory.clean(): update parent/leaf validation to also check hadis_items
Migration:
- 0050_hadis_categories: create hadis_categories junction table
Serializers (Admin):
- AdminHadisDetailSerializer: add categories (PK writable), categories_detail (read-only nested), and categories_paths (full ancestor path per category)
- validate_categories(): enforce leaf-only constraint on M2M selection
- create/update: sync categories M2M; auto-set FK category from first M2M item
- AdminHadisCategoryArchiveDetailSerializer: update child_arguments and child_count to use Q(category|categories)
Views (Admin):
- AdminHadisCategoryViewSet: annotate has_hadith using Q(category|categories)
- AdminHadisViewSet: prefetch categories; filter category_id, collection_id, source_type with Q() + distinct()
Views (Public):
- HadisListView: filter by category slug across FK and M2M using Q() + distinct()
- CategoryHadisCorrectionsView: filter corrections via M2M-aware category_id__in query
3 weeks ago
Mohsen Taba
5f9b2f195b
refactor(transmitters): convert original text to single text field with data migration and populate reference metadata scripts
3 weeks ago
Mohsen Taba
82ecac802f
feat(hadis): add multi-reference endpoints and serializers for transmitter original texts with scan images and hadith_number
3 weeks ago
Mohsen Taba
d3c075c7fb
feat(hadis): add multi-reference endpoints and serializers for interpretations with scan images
4 weeks ago
Mohsen Taba
76575da481
feat(hadis): support multiple book references with scan images, volume details, and admin endpoints
4 weeks ago
Mohsen Taba
a0be657226
fix(hadis): allow blank category description and update serializer validation
1 month ago
Mohsen Taba
541a381812
feat(hadis): support per-language secondary translations and category verse filtering
- Refactor QuranSecondaryTranslation to store language_code, translation_text and translator per record
- Add migrations 0042 and 0043 to migrate existing secondary translations
- Update AdminCategoryQuranVerseSerializer and AdminHadisCategorySerializer with proper secondary translations handling
- Support category filtering by source_type, has_quran_verse and exclude_verse_id in admin category viewset
1 month ago
Mohsen Taba
306537b6f1
fix(watermark): remove watermark from narrators, authors, article and collection thumbnails
1 month ago
Mohsen Taba
242ffe5488
feat(references): add hadis_count and child_arguments to admin book reference serializers
1 month ago
Mohsen Taba
f56736a23c
feat(corrections): apis updated for hadith corrections
2 months ago
Mohsen Taba
79af0467f6
feat(watermark): add automatic responsive watermarking on image uploads
- Create reusable watermark utility in utils/watermark.py supporting PIL, UploadedFile, bytes, and DRF serializer fields
- Default position set to bottom-left with responsive 32% width scaling and alpha blending
- Auto-resolve SVG watermark to high-resolution PNG
- Integrate automatic watermarking into Article thumbnails, Hadith/Book Reference images, Corrections, Original Texts, and Interpretations
2 months ago
Mohsen Taba
b9cf002fe1
narrators sons and fathers added
2 months ago
Mohsen Taba
9906343381
feat(hadis): add file field to BookVolume model and serializers
2 months ago
Mohsen Taba
1840a3a8fe
fix(hadis): support author and authors payload compatibility in admin reference serializer
2 months ago
Mohsen Taba
021085b866
feat(hadis): add bulk delete endpoint for admin hadis reference images
2 months ago
Mohsen Taba
4e3fe9b5b4
feat(hadis): add uncertain multi-narrator support to transmitter chains
2 months ago
Mohsen Taba
dd12d10bf4
feat(hadis): support list/JSON address storage and serialization for original texts, explanations, and corrections
2 months ago
Mohsen Taba
81efd0c8b2
feat(hadis): include scholar_detail in AdminTransmitterOpinionSerializer
2 months ago
Mohsen Taba
3c692f128f
feat(hadis): support source image upload, newest-first category ordering, and sync layer description
2 months ago
Mohsen Taba
af2f3d61b4
feat(sync): add content version management endpoints and fix author serializer
2 months ago
Mohsen Taba
1f3a13861b
feat(references): add volume unique images and source/edition single tag system
2 months ago
Mohsen Taba
bf07701b24
feat: naraytor layer logic updated to connect to hadith directly
2 months ago
Mohsen Taba
d8670128ff
Optimize category admin API queries and include status description in hadis sync/list serializers
2 months ago
Mohsen Taba
44b5f68c24
fix(transmitters): add slug and legacy_id to search and prevent empty string unique collision on legacy_id
2 months ago
Mohsen Taba
9422073bcc
feat(hadis): add ancestors category_path serialization from MPTT root to leaf
2 months ago
Mohsen Taba
56ff4f37a0
feat(hadis-admin): enable optional pagination and multipart/json parser for interpretations and corrections
2 months ago
Mohsen Taba
7c2d1c106f
feat(api): add optional pagination, category search, reference detail and relation management
2 months ago
Mohsen Taba
8c5f707736
feat(hadis): add collections_detail to AdminHadisListSerializer for collection management
2 months ago
Mohsen Taba
11d07ede6b
category filtering based on has hadith or has leaf for admin panel dropdowns
2 months ago
Mohsen Taba
db03332ec5
better and smarter way to show source volumes and edditions with has edditions switch
2 months ago
Mohsen Taba
4d24052fdf
source author avatar field added
2 months ago
Mohsen Taba
70e71b2888
search references and eddition serializers
3 months ago
mortezaei
4be852ff41
refactor(api): replace build_absolute_uri with absolute_https_url
Replace direct calls to `request.build_absolute_uri` with a centralized
`absolute_https_url` utility across account and hadis modules. This
ensures consistent enforcement of HTTPS for all absolute media URLs
(avatars, thumbnails, and images) in serializers and views.rl
3 months ago
mortezaei
666106e29f
feat: add bibliographic fields to Book model and enforce HTTPS for absolute URLs across serializers
3 months ago
Mohsen Taba
77a2ed15a8
editions editor and researcher fixed
3 months ago
Mohsen Taba
c72d5448ed
hadith serializer update to set and show hadith reference
3 months ago
Mohsen Taba
928613dd7a
query optimization
3 months ago
Mohsen Taba
f28cb75dda
references updated with editor field
3 months ago
Mohsen Taba
d4f4b74b88
transmitters legacy fixed
3 months ago
Mohsen Taba
017f4ad18b
multiangage data corroption fixed
3 months ago
Mohsen Taba
85b87efd93
collections updated
3 months ago
Mohsen Taba
a2ea302d5d
refrence researchers and author fixed
4 months ago
Mohsen Taba
101f4a0ac0
madhab filter fixed
4 months ago
Mohsen Taba
a429a9cddc
upload problem fixed
4 months ago
Mohsen Taba
a63a8fe402
original texts modal enhanced
4 months ago
Mohsen Taba
7f053d86f9
interpretations and corrections detail modal api added
4 months ago
Mohsen Taba
2938e67db1
query optimization for corrections and interpretation
4 months ago
Mohsen Taba
3d57d88b9f
refereces edditions and volumes api added
4 months ago