Skip to content
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.

email_re moved again #4

Open
avoine opened this issue Jun 12, 2011 · 0 comments
Open

email_re moved again #4

avoine opened this issue Jun 12, 2011 · 0 comments

Comments

@avoine
Copy link

avoine commented Jun 12, 2011

The email regex move again so to be sure it work on newer django version you'll need that patch:

diff --git a/blinvite/forms.py b/blinvite/forms.py
index 73e1589..f107a12 100644
--- a/blinvite/forms.py
+++ b/blinvite/forms.py
@@ -1,7 +1,11 @@
 from django import forms
 from django.utils.translation import ugettext as _
 from django.contrib.auth.models import User
-from django.forms.fields import email_re
+
+try:
+    from django.forms.fields import email_re
+except ImportError:
+    from django.core.validators import email_re

 from busylissy.blinvite.models import Invite
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant