Skip to content

Commit

Permalink
Fix #9; update version to 0.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Rikuoja committed Apr 2, 2019
1 parent 67f6fe8 commit 9064979
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion helusers/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def clean(self):
self._make_sure_uuid_is_set()
if not self.username:
self.set_username_from_uuid()
super(AbstractUser, self).clean()

def _make_sure_uuid_is_set(self):
if self.uuid is None:
Expand All @@ -76,6 +75,9 @@ def get_username(self):
return self.email
return self.username

def natural_key(self):
return (str(self.uuid),)

def sync_groups_from_ad(self):
"""Determine which Django groups to add or remove based on AD groups."""

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='django-helusers',
version='0.4.4',
version='0.4.5',
packages=['helusers'],
include_package_data=True,
license='BSD License',
Expand Down

0 comments on commit 9064979

Please sign in to comment.