Révision ce71993c
Ajouté par Benjamin Dauvergne il y a plus de 9 ans
entrouvert/djommon/multitenant/management/commands/__init__.py | ||
---|---|---|
145 | 145 |
self.args = args |
146 | 146 |
self.options = options |
147 | 147 |
|
148 |
if self.schema_name:
|
|
148 |
if self.domain:
|
|
149 | 149 |
if self.sync_public: |
150 | 150 |
raise CommandError("schema should only be used with the --tenant switch.") |
151 |
elif self.schema_name == get_public_schema_name():
|
|
151 |
elif self.domain == get_public_schema_name():
|
|
152 | 152 |
self.sync_public = True |
153 | 153 |
else: |
154 | 154 |
self.sync_tenant = True |
Formats disponibles : Unified diff
In management commands of multitenant app rename variable schema_name as domain