diff --git a/volunteers/admin.py b/volunteers/admin.py index 5e6f28e..3d60f30 100644 --- a/volunteers/admin.py +++ b/volunteers/admin.py @@ -281,7 +281,7 @@ class TrackAdmin(admin.ModelAdmin): class TalkAdmin(admin.ModelAdmin): fieldsets = [ (None, {'fields': ['track', 'speaker', 'title']}), - (None, {'fields': ['description']}), + (None, {'fields': ['description', 'fosdem_url']}), (None, {'fields': ['date', 'start_time', 'end_time']}), ] list_display = ['link', 'title', 'track', 'date', 'start_time'] @@ -313,7 +313,7 @@ class TaskAdmin(admin.ModelAdmin): (None, {'fields': ['edition', 'name', 'nbr_volunteers', 'nbr_volunteers_min', 'nbr_volunteers_max', 'date', 'start_time', 'end_time']}), (None, {'fields': ['talk', 'template']}), - (None, {'fields': ['description']}), + (None, {'fields': ['description', 'fosdem_url']}), ] # inlines = (VolunteerTaskInline,) list_display = ['link', 'edition', 'name', 'date', 'start_time', 'end_time', 'assigned_volunteers', diff --git a/volunteers/models.py b/volunteers/models.py index 7e9df7c..371a798 100644 --- a/volunteers/models.py +++ b/volunteers/models.py @@ -347,7 +347,7 @@ def __str__(self): # infodesk tasks if we do a simple name search in create_from_xml counter = models.CharField(max_length=2) description = models.TextField() - fosdem_url = models.TextField(null=True) + fosdem_url = models.TextField(null=True, blank=True) date = models.DateField() start_time = models.TimeField() end_time = models.TimeField()