Skip to content

Commit

Permalink
Allow location to be blank in interface
Browse files Browse the repository at this point in the history
  • Loading branch information
johanvdw committed Jan 7, 2025
1 parent 5cc237c commit 69770cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions volunteers/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def __str__(self):
speaker = models.CharField(max_length=128)
description = models.TextField()
fosdem_url = models.TextField(null=True)
location = models.CharField(max_length=128, null=True)
location = models.CharField(max_length=128, null=True, blank=True)
date = models.DateField()
start_time = models.TimeField()
end_time = models.TimeField()
Expand Down Expand Up @@ -431,7 +431,7 @@ def create_from_xml(cls, xml, edition):
task.description = xml.find('description').text
if xml.find('url'):
task.fosdem_url = xml.find('url').text
task.location = xml.find('location').text
task.location = xml.find('location').text if xml.find('location') else ''
day_offset = int(xml.find('day').text)
task.date = edition.start_date + datetime.timedelta(days=day_offset)
task.start_time = parse_time(xml.find('start_time').text)
Expand Down

0 comments on commit 69770cf

Please sign in to comment.