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

[search][models] Added natural_key dependencies

parent 5e1ab4dc
No related branches found
No related tags found
2 merge requests!2551.4.x,!236Fix backup restore
......@@ -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