Skip to content

Commit

Permalink
spacing only
Browse files Browse the repository at this point in the history
  • Loading branch information
jsayles committed Dec 14, 2016
1 parent 82edb30 commit 38af81f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nadine/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ def save(self):
org.locked = self.cleaned_data['locked']
org.save()


class OrganizationSearchForm(forms.Form):
terms = forms.CharField(max_length=100)


class OrganizationLinkFormSet(BaseFormSet):
def clean(self):
if any(self.errors):
Expand All @@ -91,6 +93,7 @@ def clean(self):
if url_type and not url:
raise forms.ValidationError(message='All URLS must have a type', code='missing_anchor')


class OrganizationLinkForm(forms.Form):
org_id = forms.IntegerField(required=False, widget=forms.HiddenInput)
url_type = forms.ModelChoiceField(widget=forms.Select(attrs={'class': 'browser-default'}), label='Website Type', queryset=URLType.objects.all(), required=False)
Expand Down Expand Up @@ -252,7 +255,6 @@ class ProfileImageForm(forms.Form):


def save(self):
print "fuck"
user = User.objects.get(username=self.cleaned_data['username'])
# Delete the old photo before we save a new one
user.profile.photo.delete()
Expand Down

0 comments on commit 38af81f

Please sign in to comment.