propagate the shard_key from abstract base classes' meta
This commit is contained in:
parent
95b1783834
commit
43a5d73e14
1 changed files with 1 additions and 0 deletions
|
|
@ -654,6 +654,7 @@ class TopLevelDocumentMetaclass(DocumentMetaclass):
|
|||
keys_to_propogate = (
|
||||
'index_background', 'index_drop_dups', 'index_opts',
|
||||
'allow_inheritance', 'queryset_class', 'db_alias',
|
||||
'shard_key'
|
||||
)
|
||||
for key in keys_to_propogate:
|
||||
if key in base._meta:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue