SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 6e9ca349 authored by George Katsikas's avatar George Katsikas :goat:
Browse files

register converters per app

parent ce3f6a8f
No related branches found
No related tags found
No related merge requests found
......@@ -2,9 +2,18 @@ __copyright__ = "Copyright © Stichting SciPost (SciPost Foundation)"
__license__ = "AGPL v3"
from django.urls import include, path
from django.urls import include, path, register_converter
from .. import views
from ..converters import CollegeSlugConverter
from ontology.converters import AcademicFieldSlugConverter, SpecialtySlugConverter
from submissions.converters import IdentifierConverter
register_converter(IdentifierConverter, "identifier")
register_converter(CollegeSlugConverter, "college")
register_converter(AcademicFieldSlugConverter, "acad_field")
register_converter(SpecialtySlugConverter, "specialty")
app_name = "colleges"
......
......@@ -2,10 +2,16 @@ __copyright__ = "Copyright © Stichting SciPost (SciPost Foundation)"
__license__ = "AGPL v3"
from django.urls import include, path
from django.urls import include, path, register_converter
from colleges.converters import CollegeSlugConverter
from submissions.converters import IdentifierConverter
app_name = "edadmin"
register_converter(IdentifierConverter, "identifier")
register_converter(CollegeSlugConverter, "college")
urlpatterns = [
path("", include("edadmin.urls.base")),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment