add container to testdata.py
This commit is contained in:
parent
3068597f3d
commit
f6455638d7
1 changed files with 9 additions and 0 deletions
|
@ -70,6 +70,15 @@ def setup():
|
||||||
issue_thread=issue_thread,
|
issue_thread=issue_thread,
|
||||||
)[0]
|
)[0]
|
||||||
|
|
||||||
|
from inventory.models import Container
|
||||||
|
|
||||||
|
Container.objects.get_or_create(
|
||||||
|
id=1,
|
||||||
|
name='testcontainer'
|
||||||
|
)[0]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings")
|
||||||
|
|
Loading…
Add table
Reference in a new issue