Skip to content

Commit

Permalink
Define account.bsdUsers as the new user model
Browse files Browse the repository at this point in the history
  • Loading branch information
william-gr committed Nov 4, 2013
1 parent 390580b commit f73221d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gui/account/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ def get_sentinel_group():


class bsdUsers(Model):

USERNAME_FIELD = 'bsdusr_username'
REQUIRED_FIELDS = []

bsdusr_uid = models.IntegerField(
verbose_name=_("User ID")
)
Expand Down
2 changes: 2 additions & 0 deletions gui/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@
# Maybe offer as an option in the GUI
ALLOWED_HOSTS = ['*']

AUTH_USER_MODEL = 'account.bsdUsers'

SOUTH_TESTS_MIGRATE = False

FILE_UPLOAD_MAX_MEMORY_SIZE = 33554432
Expand Down

0 comments on commit f73221d

Please sign in to comment.