~ltp-devs/loco-team-portal/0.2

« back to all changes in this revision

Viewing changes to loco_directory/venues/forms.py

  • Committer: Daniel Holbach
  • Date: 2010-10-18 13:25:44 UTC
  • mfrom: (310.3.1 fix.653727)
  • Revision ID: daniel.holbach@canonical.com-20101018132544-nr7i6on865ut162h
mergedĀ lp:~adnane002/loco-directory/fix.653727

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
        model = Venue
18
18
 
19
19
    def clean(self):
20
 
        self.cleaned_data['name'] = validate_name(self.cleaned_data['name'])
 
20
        self.cleaned_data['name'] = validate_name(self.cleaned_data.get('name'))
21
21
        return super(VenueForm, self).clean()
22
22
 
23
23
class VenueSearchForm(forms.Form):