Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions django_libtech_emailuser.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Description: ========================
subclassing the User class in `django.contrib.auth.models` instead if you want a model that plays
nicely with the rest of `django.contrib.auth` the simplest way is to copy all the code in
`django.contrib.auth.models.User` and substitute username for emailaddress. You also need to
edit some other minor stuff. This Django app does just that. I'm using it in production for a couple
of client sites and it works fine.
edit some other minor stuff in forms.py and admin.py. This Django app does just that. I'm using it
in production for a couple of client sites and it works fine.

Quick start
-----------
Expand Down
4 changes: 2 additions & 2 deletions emailuser/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ def get_urls(self):
self.admin_site.admin_view(self.user_change_password))
) + super(EmailUserAdmin, self).get_urls()

@sensitive_post_parameters_m
@method_decorator(sensitive_post_parameters())
@csrf_protect_m
@transaction.commit_on_success
@transaction.atomic()
def add_view(self, request, form_url='', extra_context=None):
# It's an error for a user to have add permission but NOT change
# permission for users. If we allowed such users to add users, they
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name='django-libtech-emailuser',
version='0.2',
version='0.2.1',
packages=['emailuser'],
include_package_data=True,
license='BSD License',
Expand Down