Commit a01a205
committed
fix(urls): parse hyphens in agency slug paths
TransitAgency.slug is a SlugField and so allows configuring an agency
with hyphens in its slug, e.g. simi-valley-transit
however the URL path parsing in TransitAgencyPathConverter failed to
account for hyphens, leading to an error for agencies so configured, e.g.
> Reverse for 'agency_index' with arguments '('simi-valley-transit',)' not found.
> 1 pattern(s) tried: ['(?P<agency>[a-zA-Z]{3,})\\Z']1 parent 9789d4b commit a01a205
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
0 commit comments