Skip to content

Commit

Permalink
allow space remaining to be blank on webinars (#1604)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvolo authored Jan 9, 2025
1 parent cce8cf2 commit 68b640d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions webinars/migrations/0006_alter_webinar_spaces_remaining.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.1.1 on 2025-01-08 16:14

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("webinars", "0005_webinar_webinar_collections"),
]

operations = [
migrations.AlterField(
model_name="webinar",
name="spaces_remaining",
field=models.PositiveIntegerField(blank=True, null=True),
),
]
2 changes: 1 addition & 1 deletion webinars/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Webinar(models.Model):
title = models.CharField(max_length=255)
description = models.TextField()
speakers = models.CharField(max_length=255)
spaces_remaining = models.PositiveIntegerField()
spaces_remaining = models.PositiveIntegerField(blank=True, null=True)
registration_url = models.URLField()
registration_link_text = models.CharField(max_length=255)
display_on_tutor_page = models.BooleanField(default=False)
Expand Down

0 comments on commit 68b640d

Please sign in to comment.