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

[experiments][models][block_input] Added dependencies to BlockInput natural_key

This allows Django to serialize the database content in the correct
order.
parent c5ea2054
No related branches found
No related tags found
2 merge requests!2551.4.x,!236Fix backup restore
......@@ -81,3 +81,6 @@ class BlockInput(models.Model):
cache_hash = self.cache and self.cache.hash
database_natural_key = self.database and self.database.natural_key()
return (block_natural_key, cache_hash, database_natural_key)
natural_key.dependencies = ['experiments.block',
'experiments.cachedfile',
'databases.databasesetoutput']
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