Permalink
Browse files

Define account.bsdUsers as the new user model

  • Loading branch information...
1 parent 390580b commit f73221daba349549c55e1084283dbbe2b1d81cda @william-gr william-gr committed Nov 1, 2013
Showing with 6 additions and 0 deletions.
  1. +4 −0 gui/account/models.py
  2. +2 −0 gui/settings.py
View
4 gui/account/models.py
@@ -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")
)
View
2 gui/settings.py
@@ -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

0 comments on commit f73221d

Please sign in to comment.