- Timestamp:
- Dec 21, 2018, 11:00:25 AM (5 years ago)
- Branches:
- current, feature/docs, master
- Children:
- fe6089a
- Parents:
- d507f75
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ow/views/user.py
rd507f75 r31adfa5 5 5 from pyramid.i18n import TranslationStringFactory 6 6 from pyramid_simpleform import Form, State 7 from pytz import common_timezones 7 8 8 9 from ..models.user import User … … 167 168 # Saved, send the user to the public view of her profile 168 169 return HTTPFound(location=request.resource_url(context, 'profile')) 170 169 171 # prevent crashes on the form 170 172 if 'picture' in form.data: 171 173 del form.data['picture'] 172 return {'form': OWFormRenderer(form)} 174 175 return {'form': OWFormRenderer(form), 176 'timezones': common_timezones} 173 177 174 178
Note: See TracChangeset
for help on using the changeset viewer.