fix: allow null values for Jitsi fields in AppointmentRequest
Add `null=True` to `jitsi_meet_url` and `jitsi_room_id` fields in the AppointmentRequest model. This allows these optional fields to be NULL at the database level in addition to accepting blank values, which is the proper Django pattern for optional string-based fields. This change requires a database migration to be generated and applied.
This commit is contained in:
parent
b58338db2f
commit
7d5d3217a0
@ -0,0 +1,23 @@
|
|||||||
|
# Generated by Django 5.2.8 on 2025-11-27 14:55
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('meetings', '0001_initial'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='appointmentrequest',
|
||||||
|
name='jitsi_meet_url',
|
||||||
|
field=models.URLField(blank=True, help_text='Jitsi Meet URL for the video session', null=True),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='appointmentrequest',
|
||||||
|
name='jitsi_room_id',
|
||||||
|
field=models.CharField(blank=True, help_text='Jitsi room ID', max_length=100, null=True, unique=True),
|
||||||
|
),
|
||||||
|
]
|
||||||
@ -203,8 +203,8 @@ class AppointmentRequest(models.Model):
|
|||||||
)
|
)
|
||||||
rejection_reason = EncryptedTextField(blank=True)
|
rejection_reason = EncryptedTextField(blank=True)
|
||||||
|
|
||||||
jitsi_meet_url = models.URLField(blank=True, help_text="Jitsi Meet URL for the video session")
|
jitsi_meet_url = models.URLField(blank=True, null=True, help_text="Jitsi Meet URL for the video session")
|
||||||
jitsi_room_id = models.CharField(max_length=100, unique=True, blank=True, help_text="Jitsi room ID")
|
jitsi_room_id = models.CharField(max_length=100, unique=True, null=True, blank=True, help_text="Jitsi room ID")
|
||||||
|
|
||||||
created_at = models.DateTimeField(auto_now_add=True)
|
created_at = models.DateTimeField(auto_now_add=True)
|
||||||
updated_at = models.DateTimeField(auto_now=True)
|
updated_at = models.DateTimeField(auto_now=True)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user