Merge pull request #64 from alonho/abstract_shard_key

propagate the shard_key from abstract base classes' meta
This commit is contained in:
Ross Lawley 2012-08-07 05:24:45 -07:00
commit 83b961c84d

View File

@ -654,6 +654,7 @@ class TopLevelDocumentMetaclass(DocumentMetaclass):
keys_to_propogate = ( keys_to_propogate = (
'index_background', 'index_drop_dups', 'index_opts', 'index_background', 'index_drop_dups', 'index_opts',
'allow_inheritance', 'queryset_class', 'db_alias', 'allow_inheritance', 'queryset_class', 'db_alias',
'shard_key'
) )
for key in keys_to_propogate: for key in keys_to_propogate:
if key in base._meta: if key in base._meta: