Re: [PATCH v2] models: Validate Project.linkname does not contain forward slash

2020-09-26 Thread Thomas Bracht Laumann Jespersen
> Thanks! This is one of those things you just assume people are doing so > you never bother enforcing it :) In hindsight, the 'Project.linkname' > field is supposed to be a slug - that is, restricted to letters, > numbers, underscores and hyphens. You'd use 'Project.name' if you > wanted more deta

Re: [PATCH v2] models: Validate Project.linkname does not contain forward slash

2020-09-26 Thread Stephen Finucane
On Tue, 2020-09-08 at 16:06 +0200, Thomas Bracht Laumann Jespersen wrote: > I started by creating a project that contained a forward slash > (importing patches from https://lists.sr.ht/~sircmpwn/sr.ht-dev/) and > it fails to render the "projects" main page. > > The specific error reads: > > N

[PATCH v2] models: Validate Project.linkname does not contain forward slash

2020-09-08 Thread Thomas Bracht Laumann Jespersen
I started by creating a project that contained a forward slash (importing patches from https://lists.sr.ht/~sircmpwn/sr.ht-dev/) and it fails to render the "projects" main page. The specific error reads: NoReverseMatch at / Reverse for 'patch-list' with keyword arguments '{'project_i