diff --git a/hackathon/migrations/0055_remove_event_isreadonly.py b/hackathon/migrations/0055_remove_event_isreadonly.py new file mode 100644 index 00000000..3302bc18 --- /dev/null +++ b/hackathon/migrations/0055_remove_event_isreadonly.py @@ -0,0 +1,17 @@ +# Generated by Django 3.1.13 on 2024-10-08 13:58 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('hackathon', '0054_event'), + ] + + operations = [ + migrations.RemoveField( + model_name='event', + name='isReadOnly', + ), + ] diff --git a/hackathon/models.py b/hackathon/models.py index 944d757d..a7a5236d 100644 --- a/hackathon/models.py +++ b/hackathon/models.py @@ -308,7 +308,6 @@ class Event(models.Model): start = models.DateTimeField() end = models.DateTimeField() body = models.TextField(max_length=500, default="") - isReadOnly = models.BooleanField(default=True) webinar_link = models.URLField(blank=True, null=True) webinar_code = models.CharField(max_length=50, blank=True, null=True) diff --git a/hackathon/views.py b/hackathon/views.py index ec3b7326..fdea951d 100644 --- a/hackathon/views.py +++ b/hackathon/views.py @@ -397,11 +397,6 @@ def view_hackathon(request, hackathon_id): and settings.SLACK_ADMIN_TOKEN) matching_events = Event.objects.filter(hackathon_id=hackathon_id) has_events = matching_events.exists() - - - # Check if there are any matching events - has_events = matching_events.exists() - context = { 'has_events': has_events, 'events': matching_events,