comparison bio/forms.py @ 971:4f265f61874b

Hotlink image form is functioning. The user can now submit a URL via a form and the URL will be downloaded and uploaded to a S3 bucket if it is an image. Tests to follow.
author Brian Neal <bgneal@gmail.com>
date Tue, 22 Sep 2015 20:23:50 -0500
parents 5be850a66dfc
children 164a39d985ef
comparison
equal deleted inserted replaced
970:bd594bcba5eb 971:4f265f61874b
13 13
14 import pytz 14 import pytz
15 15
16 from bio.models import UserProfile 16 from bio.models import UserProfile
17 from core.widgets import AutoCompleteUserInput 17 from core.widgets import AutoCompleteUserInput
18 from core.image import parse_image, downscale_image_square 18 from core.images.utils import parse_image, downscale_image_square
19 19
20 20
21 class EditUserForm(forms.ModelForm): 21 class EditUserForm(forms.ModelForm):
22 """Form for editing the fields of the User model.""" 22 """Form for editing the fields of the User model."""
23 email = forms.EmailField(label='Email', required=True) 23 email = forms.EmailField(label='Email', required=True)