mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-02-08 11:49:50 +00:00
part-way though converting to slugs for people
This commit is contained in:
7
urls.py
7
urls.py
@@ -124,7 +124,8 @@ trogglepatterns = [
|
||||
# Persons - nasty surname recognition logic fails for 19 people! See also Wallets by person below.
|
||||
# path('person/<str:name>', person, name="person"), # This is much more complex than it looks..
|
||||
re_path(r'^person/(?P<first_name>[A-Z]*[a-z\-\'&;]*)[^a-zA-Z]*(?P<last_name>[a-z\-\']*[^a-zA-Z]*[\-]*[A-Z]*[a-zA-Z\-&;]*)/?', person, name="person"),
|
||||
re_path(r'^personexpedition/(?P<first_name>[A-Z]*[a-z&;]*)[^a-zA-Z]*(?P<last_name>[A-Z]*[a-zA-Z&;]*)/(?P<year>\d+)/?$', personexpedition, name="personexpedition"),
|
||||
#re_path(r'^personexpedition/(?P<first_name>[A-Z]*[a-z&;]*)[^a-zA-Z]*(?P<last_name>[A-Z]*[a-zA-Z&;]*)/(?P<year>\d+)/?$', personexpedition, name="personexpedition"),
|
||||
path('personexpedition/<slug:slug>/<int:year>', personexpedition, name="personexpedition"),
|
||||
|
||||
# Expedition master page & API exports
|
||||
re_path(r'^expedition/(\d+)$', expedition, name="expedition"),
|
||||
@@ -210,7 +211,9 @@ trogglepatterns = [
|
||||
|
||||
# The data about the wallets themselves, not the scans inside tehm
|
||||
path('wallets/year/<int:year>', walletslistyear, name="walletslistyear"), # wallets that are for a specific year, as an integer '1985'
|
||||
re_path('wallets/person/(?P<first_name>[A-Z]*[a-z\-\'&;]*)[^a-zA-Z]*(?P<last_name>[a-z\-\']*[^a-zA-Z]*[\-]*[A-Z]*[a-zA-Z\-&;]*)/?', walletslistperson, name="walletslistperson"),
|
||||
# re_path('wallets/person/(?P<first_name>[A-Z]*[a-z\-\'&;]*)[^a-zA-Z]*(?P<last_name>[a-z\-\']*[^a-zA-Z]*[\-]*[A-Z]*[a-zA-Z\-&;]*)/?', walletslistperson, name="walletslistperson"),
|
||||
path('wallets/person/<slug:slug>', walletslistperson, name="walletslistperson"),
|
||||
|
||||
|
||||
|
||||
# The tunnel and therion drawings files pageswalletslistcave
|
||||
|
||||
Reference in New Issue
Block a user