dj/users-status: Status for users (Contributor, DM, DD)
Django migration: #47 (closed).
This MR re-adds the status of a user.
Previous status definition has been converted from:
# Type of user
USER_STATUS_NORMAL = 1 # package maintainer
USER_STATUS_DEVELOPER = 2 # official "Debian Developer"
USER_STATUS_MAINTAINER = 3 # official "Debian Maintainer"
to
UserStatus = {
'contributor': 1, # Contributor
'maintainer': 2, # Debian Maintainer (DM)
'developer': 3, # Debian Developer (DD)
}
Status is stored in the Profile model.
The following functional changes have been made:
- On the profile page, Status checkbox/label (depending on the Maintainer/Sponsor profile) has been replaced with a List of choices. This input have a closer match for the model that the previous representation.