Skip to content

Commit 9ada358

Browse files
Fix PR Comments
1 parent 48a0c6a commit 9ada358

3 files changed

Lines changed: 17 additions & 6 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Generated by Django 3.1.13 on 2024-10-08 13:58
2+
3+
from django.db import migrations
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('hackathon', '0054_event'),
10+
]
11+
12+
operations = [
13+
migrations.RemoveField(
14+
model_name='event',
15+
name='isReadOnly',
16+
),
17+
]

hackathon/models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,6 @@ class Event(models.Model):
308308
start = models.DateTimeField()
309309
end = models.DateTimeField()
310310
body = models.TextField(max_length=500, default="")
311-
isReadOnly = models.BooleanField(default=True)
312311
webinar_link = models.URLField(blank=True, null=True)
313312
webinar_code = models.CharField(max_length=50, blank=True, null=True)
314313

hackathon/views.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -397,11 +397,6 @@ def view_hackathon(request, hackathon_id):
397397
and settings.SLACK_ADMIN_TOKEN)
398398
matching_events = Event.objects.filter(hackathon_id=hackathon_id)
399399
has_events = matching_events.exists()
400-
401-
402-
# Check if there are any matching events
403-
has_events = matching_events.exists()
404-
405400
context = {
406401
'has_events': has_events,
407402
'events': matching_events,

0 commit comments

Comments
 (0)