This commit is contained in:
Salt 2025-01-24 16:44:26 -06:00
parent 36c034e2ba
commit 9b00d661a5

View File

@ -21,7 +21,7 @@ class TaggingRule(models.Model):
name = models.CharField(max_length=1024, help_text="A non-user-facing name for the rule")
title_regex = models.CharField(max_length=512, blank=True, help_text="A regular expression to match against the title of a release. If the release's title matches, the tag is applied. If this value is blank, it is ignored.")
description_regex = models.CharField(max_length=512, blank=True, help_text="A regular expression to match against the description of a release. If it matches, the tag is applied. If this value is blank, it iss ignored.")
required_tag = models.ForeignKey(Tag, related_name="requiredtag", on_delete=models.CASCADE, null=True, blank=True, help_text="A taga to match against a release. If this value is blank, it is ignored.")
required_tag = models.ForeignKey(Tag, related_name="requiredtag", on_delete=models.CASCADE, null=True, blank=True, help_text="A tag to match against a release. If this value is blank, it is ignored.")
tag = models.ForeignKey(Tag, related_name="targettag", on_delete=models.CASCADE, db_index=True, help_text="The tag to assign a release with")
def __str__(self):