Skip to content
This repository has been archived by the owner on Feb 7, 2019. It is now read-only.

Commit

Permalink
Merge pull request #40 from brki/m2m-tablespace-taken-from-defining-m…
Browse files Browse the repository at this point in the history
…odel

Take m2m through table tablespace from defining models Meta definition
  • Loading branch information
maennel committed Jan 5, 2015
2 parents 3040843 + fb333aa commit 6d9f5b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions versions/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ def create_versioned_many_to_many_intermediary_model(field, cls, field_name):
meta = type('Meta', (object,), {
# 'unique_together': (from_, to),
'auto_created': cls,
'db_tablespace': cls._meta.db_tablespace,
'app_label': cls._meta.app_label,
})
return type(str(name), (Versionable,), {
Expand Down

0 comments on commit 6d9f5b0

Please sign in to comment.