Skip to content
Discussion options

You must be logged in to vote
>>> tg = TenantGroup(name="testgroup", slug="testgroup")
>>> tg.full_clean()
>>> tg.save()
>>> t = Tenant(name="testtenant", slug="testtenant", group=tg)
>>> t.full_clean()
>>> t.save()

However I do not recommend using nbshell to import data as change logging does not work by default in it.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@LukasIgel
Comment options

@kkthxbye-code
Comment options

Answer selected by LukasIgel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants