From 48f43b5ac9ac010ce7c136ae7b5ece9f38d1a21d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81kos=20Pap?= Date: Thu, 30 Jan 2014 16:31:33 +0100 Subject: [PATCH] Updated to work with Django 1.6 & Python 3.3 --- django_libtech_emailuser.egg-info/PKG-INFO | 4 ++-- emailuser/admin.py | 4 ++-- setup.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/django_libtech_emailuser.egg-info/PKG-INFO b/django_libtech_emailuser.egg-info/PKG-INFO index 6abb4f0..ea20d05 100644 --- a/django_libtech_emailuser.egg-info/PKG-INFO +++ b/django_libtech_emailuser.egg-info/PKG-INFO @@ -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 ----------- diff --git a/emailuser/admin.py b/emailuser/admin.py index 6903ee2..14c7bb3 100644 --- a/emailuser/admin.py +++ b/emailuser/admin.py @@ -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 diff --git a/setup.py b/setup.py index d5497a8..7ae7b50 100644 --- a/setup.py +++ b/setup.py @@ -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',