Skip to content

Conversation

@robmoorman
Copy link
Collaborator

For now multiple domain names we can a) use the regex or b) enter multiple rules

screen shot 2017-05-31 at 17 24 01

Copy link
Collaborator

@tomdyson tomdyson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks much better, if we don't mind the minor risk that a user enters google.com which could also match googlezcom.com.

"""
regex_string = models.TextField(
_("Regular expression to match the referrer"))
_("Referral"), help_text=_("Enter the domain name (like google.com) "
Copy link

@kaedroho kaedroho May 31, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The . characters in domain names may be misinterpreted if the value of this field is still going to be interpreted as a regex.

@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This migration needs to be given a name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants