Ignore:
Timestamp:
Jul 6, 2012, 2:49:11 AM (13 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage
Children:
984dca1
Parents:
3496370
git-author:
Alex Dehnert <adehnert@…> (07/06/12 02:47:00)
git-committer:
Alex Dehnert <adehnert@…> (07/06/12 02:49:11)
Message:

Cap FYSM descriptions at 400 characters (ASA-#129)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/forms/views.py

    r3496370 rcbdbd1f  
    156156        return name
    157157
     158    def clean_description(self, ):
     159        description = self.cleaned_data['description']
     160        length = len(description)
     161        if length > 400:
     162            raise ValidationError("Descriptions are capped at 400 characters, and this one is %d characters." % (length, ))
     163        return description
     164
    158165@login_required
    159166def fysm_manage(request, group, ):
Note: See TracChangeset for help on using the changeset viewer.