emilyhorsman / codeofconductlink

A software community tracker to highlight projects with a Code of Conduct and underrepresented authors/contributors.
12 stars 4 forks source link

django-taggit + django-reversion + validators #20

Open emilyhorsman opened 9 years ago

emilyhorsman commented 9 years ago

Currently a tag can be named with a non slug character (alphanumeric, underscore, hyphen) which causes the slug to mess up and no URL can be resolved with that slug as an argument (it ends up being a blank slug e.g. '??' -> '')

For django-reversion, a model needs to be made to represent tags.

Two options for the slugs:

  1. Simply don't try to link invalid slugs (easier and maybe better?)
  2. Validate tags so only slug characters are allowed (harder, less freedom?)