Skip to content

Commit

Permalink
Fix urls
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoacierno committed Mar 2, 2024
1 parent c405ee7 commit b130e21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions backend/conferences/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,18 +183,18 @@ class ConferenceAdmin(OrderedInlineModelAdminMixin, admin.ModelAdmin):
inlines = [DeadlineInline, DurationInline, SponsorLevelInline, IncludedEventInline]

def get_urls(self):
return super().get_urls() + [
return [
path(
"<int:object_id>/video-upload/map-videos/",
"<path:object_id>/video-upload/map-videos/",
self.admin_site.admin_view(self.map_videos),
name="map_videos",
),
path(
"<int:object_id>/schedule-builder/",
"<path:object_id>/schedule-builder/",
self.admin_site.admin_view(self.schedule_builder),
name="schedule_builder",
),
]
] + super().get_urls()

def schedule_builder(self, request, object_id):
conference = Conference.objects.get(pk=object_id)
Expand Down
2 changes: 1 addition & 1 deletion backend/custom_admin/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def get_urls(self) -> List:
name=f"custom_index_link_{func_name}",
)
)
return base_urls + additional_urls
return additional_urls + base_urls


def validate_single_conference_selection(func):
Expand Down

0 comments on commit b130e21

Please sign in to comment.