Skip to content

Commit

Permalink
Add ability to change the task/talk URL to the admin pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Danyc0 committed Feb 9, 2024
1 parent 5378fc6 commit b74b1d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions volunteers/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion volunteers/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b74b1d0

Please sign in to comment.