This commit is contained in:
Joshua Laymon
2025-08-12 21:53:03 -05:00
parent 97da3bd6c5
commit 2fb9e7c39c
31 changed files with 554 additions and 419 deletions
+6 -8
View File
@@ -1,18 +1,16 @@
from django.db import models
class Entry(models.Model):
# Field names aligned to CSV headers (case-insensitive mapping in importer)
subject = models.TextField(blank=True)
illustration = models.TextField(blank=True)
application = models.TextField(blank=True)
scripture_raw = models.TextField(blank=True) # from CSV 'Scripture'
scripture_raw = models.TextField(blank=True)
source = models.CharField(max_length=255, blank=True)
talk_title = models.CharField(max_length=255, blank=True) # 'Talk Title'
talk_number = models.IntegerField(null=True, blank=True) # 'Talk Number'
entry_code = models.CharField(max_length=64, blank=True, db_index=True) # 'Code'
date_added = models.DateField(null=True, blank=True) # 'Date'
date_edited = models.DateField(null=True, blank=True) # 'Date Edited'
talk_number = models.IntegerField(null=True, blank=True)
talk_title = models.CharField(max_length=255, blank=True)
entry_code = models.CharField(max_length=64, blank=True, db_index=True)
date_added = models.DateField(null=True, blank=True)
date_edited = models.DateField(null=True, blank=True)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)