Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add help text for referral rule (fixes #95) #148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

@@ -159,7 +159,9 @@ class ReferralRule(AbstractBaseRule):

"""
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