Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G GestioPEI
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Klub Dev ENSKlub Dev ENS
  • GestioPEI
  • Merge requests
  • !4

Add profile edit form/view + modify mandatory models fields

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Aurélien Delobelle requested to merge user-forms into master Sep 09, 2017
  • Overview 11
  • Commits 5
  • Pipelines 0
  • Changes 9
  • ProfileEditView allows connected user to modify its own profile according to its user type (guest student, tutor or volunteer).
  • This view comes with tests.
  • Many models fields was incorrecly mandatory.
  • Fix birth_date field on User, which was allowed to be blank but not null on database level.

This commit introduces a restriction for a user to be of a single type: GuestStudent, Tutor, Volunteer.
To withdraw this restriction, one should rewrite ProfileEditView (the view for a connected user to change his data).

Edited Sep 10, 2017 by Aurélien Delobelle
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: user-forms