-
Notifications
You must be signed in to change notification settings - Fork 34
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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) " |
There was a problem hiding this comment.
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 -*- |
There was a problem hiding this comment.
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
For now multiple domain names we can a) use the regex or b) enter multiple rules