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

email_re moved again #4

@avoine

Description

@avoine

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions