Commit bdcf3a2c authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

Added some comments.

parent e0abf0b4
......@@ -25,11 +25,13 @@ class URLForm( forms.ModelForm ):
widget = forms.RadioSelect(),
# Add a custom short field for validation.
# Short field must be only letters.
alphanumeric = RegexValidator(
'Only letters are allowed.'
# Custom short-url field with validators.
short = forms.CharField(
required = False,
label = 'Short URL (Optional)',
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment