]> git.ipfire.org Git - thirdparty/patchwork.git/commit
models: Use non-null slugs for 'Check.name'
authorStephen Finucane <stephen.finucane@intel.com>
Fri, 24 Jun 2016 16:28:12 +0000 (17:28 +0100)
committerStephen Finucane <stephen.finucane@intel.com>
Tue, 28 Jun 2016 09:16:10 +0000 (10:16 +0100)
commitc5b9ca05fe905666d7f1ab90d655b5881b7c22e4
tree4d7cb7b35c3931b422f3a2d8b6558a15dc051929
parentdbdc58e3d7334bd32b52ef0a39111afadcae61ab
models: Use non-null slugs for 'Check.name'

The schema for 'Check' defines 'Check.name' as a 'CharField'. This is
less than ideal as names with spaces and special characters can't be
represented cleanly in URLs etc. We should use 'SlugField' instead.

Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
Reviewed-by: Andy Doan <andy.doan@linaro.org>
Closes: #33
patchwork/migrations/0013_slug_check_context.py [new file with mode: 0644]
patchwork/models.py