Skip to content

Commit

Permalink
Fix PR Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kenanwright1988 committed Oct 8, 2024
1 parent 48a0c6a commit 9ada358
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
17 changes: 17 additions & 0 deletions hackathon/migrations/0055_remove_event_isreadonly.py
Original file line number Diff line number Diff line change
@@ -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',
),
]
1 change: 0 additions & 1 deletion hackathon/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
5 changes: 0 additions & 5 deletions hackathon/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9ada358

Please sign in to comment.