Mercurial > public > sg101
comparison weblinks/forms.py @ 1148:176d1550bf25
Convert weblinks to V3 design.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 01 Dec 2016 21:02:31 -0600 |
parents | ee87ea74d46b |
children |
comparison
equal
deleted
inserted
replaced
1147:4879df353104 | 1148:176d1550bf25 |
---|---|
18 return new_url | 18 return new_url |
19 raise forms.ValidationError('That link already exists in our database.') | 19 raise forms.ValidationError('That link already exists in our database.') |
20 | 20 |
21 class Meta: | 21 class Meta: |
22 model = PendingLink | 22 model = PendingLink |
23 exclude = ('user', 'date_added', 'update_date') | 23 fields = ['category', 'title', 'url', 'description'] |