Changeset 722ae18 in OpenWorkouts-current for ow/schemas


Ignore:
Timestamp:
Dec 17, 2018, 5:13:45 PM (5 years ago)
Author:
borja <borja@…>
Branches:
current, feature/docs, master
Children:
c90d245
Parents:
affc3f7
Message:

(#32) Improvements on the edit profile form:

  • Added field for nickname, set as not required
  • Applied classes to add some styling based on the new code in forms.css
  • Ensure the error messages are displayed clearly by the field that caused the errors.
  • Loaded pickadate js date picker for the birth date field
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/schemas/user.py

    raffc3f7 r722ae18  
    6666    lastname = validators.UnicodeString(not_empty=True)
    6767    email = validators.Email(not_empty=True)
     68    nickname = UniqueNickname(if_missing='')
    6869    bio = validators.UnicodeString(if_missing='')
    6970    birth_date = validators.DateConverter(month_style='dd/mm/yyyy')
     
    9293    allow_extra_fields = True
    9394    filter_extra_fields = True
    94     nickname = UniqueNickname()
     95    nickname = UniqueNickname(if_missing='')
    9596    firstname = validators.UnicodeString(not_empty=True)
    9697    lastname = validators.UnicodeString(not_empty=True)
     
    108109    allow_extra_fields = True
    109110    filter_extra_fields = True
    110     nickname = UniqueNickname()
     111    nickname = UniqueNickname(if_missing='')
    111112    email = UniqueEmail(not_empty=True)
Note: See TracChangeset for help on using the changeset viewer.