Skip to content
Snippets Groups Projects
Commit da34a52d authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[search][models] Added natural_key dependencies

parent 2ed45f6e
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -146,6 +146,7 @@ class Leaderboard(models.Model):
def natural_key(self):
return (self.search.author.username, self.search.name, self.search.version)
natural_key.dependencies = ['search.search']
def get_absolute_url(self):
return reverse(
......
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