Skip to content
Snippets Groups Projects
Verified Commit 711015cd authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Make field_name completely unique

parent ea057fa0
No related branches found
No related tags found
No related merge requests found
Pipeline #34008 passed
...@@ -184,7 +184,7 @@ class RankingCategory(ExtensibleModel): ...@@ -184,7 +184,7 @@ class RankingCategory(ExtensibleModel):
@property @property
def field_name(self): def field_name(self):
return "ranking_" + slugify(self.name).replace("-", "_") return "ranking_" + slugify(self.name).replace("-", "_") + "_" + str(self.group.pk)
class Meta: class Meta:
verbose_name = _("Ranking category") verbose_name = _("Ranking category")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment