From 3e63c31c661a1b0b73891699f92e254d04fd2a1a Mon Sep 17 00:00:00 2001 From: Richard Date: Fri, 6 Oct 2023 17:56:44 +0200 Subject: [PATCH] fix line length warnings --- referral/migrations/0001_initial.py | 5 ++++- referral/migrations/0002_auto_20230623_2008.py | 5 ++++- referral/models.py | 5 ++++- referral/settings.py | 3 ++- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/referral/migrations/0001_initial.py b/referral/migrations/0001_initial.py index c0f1899..4566209 100644 --- a/referral/migrations/0001_initial.py +++ b/referral/migrations/0001_initial.py @@ -35,7 +35,10 @@ class Migration(migrations.Migration): ( "pattern", models.CharField( - help_text=b"All auto created referrers containing this pattern will be associated with this campaign", + help_text=( + "All auto created referrers containing this pattern will be" + " associated with this campaign" + ), max_length=255, verbose_name="Referrer pattern", blank=True, diff --git a/referral/migrations/0002_auto_20230623_2008.py b/referral/migrations/0002_auto_20230623_2008.py index aa545ec..4ace560 100644 --- a/referral/migrations/0002_auto_20230623_2008.py +++ b/referral/migrations/0002_auto_20230623_2008.py @@ -14,7 +14,10 @@ class Migration(migrations.Migration): name="pattern", field=models.CharField( blank=True, - help_text="All auto created referrers containing this pattern will be associated with this campaign", + help_text=( + "All auto created referrers containing this pattern will be " + "associated with this campaign" + ), max_length=255, verbose_name="Referrer pattern", ), diff --git a/referral/models.py b/referral/models.py index cb3b2ad..6dee957 100644 --- a/referral/models.py +++ b/referral/models.py @@ -12,7 +12,10 @@ class Campaign(models.Model): _("Referrer pattern"), blank=True, max_length=255, - help_text="All auto created referrers containing this pattern will be associated with this campaign", + help_text=( + "All auto created referrers containing this pattern will be associated with" + " this campaign" + ), ) class Meta: diff --git a/referral/settings.py b/referral/settings.py index e653a67..981d10d 100644 --- a/referral/settings.py +++ b/referral/settings.py @@ -9,7 +9,8 @@ # Should unknown referrers be auto created? Default: True AUTO_CREATE = getattr(settings, "REFERRAL_AUTO_CREATE", True) -# If this is set auto created referrers will be associated to a campaign that defines a matching pattern. Default: True +# If this is set auto created referrers will be associated to a campaign that defines a +# matching pattern. Default: True AUTO_ASSOCIATE = getattr(settings, "REFERRAL_AUTO_ASSOCIATE", True) # If this is set to True, referral names will be case-sensitive.