borisbrue / wagtail-tenants

wagtail_tenants is a Django/Wagtail app to provide multitenancy to your wagtail project.
25 stars 8 forks source link

Improve the `manage.py create_tenant` command #8

Closed Jean-Zombie closed 1 year ago

Jean-Zombie commented 1 year ago

Hey there,

this PR aims on improving the create_tenant management command a tiny bit. On tenant creation it extends the "paid until" input prompt with the expected format (YYYY-MM-DD). It also extends the "on trial" input with "('True' or 'False')". Furthermore the IntegrityErrors are now printed with stderr. This is particularly useful when you enter a domain wich already exists. Before this the input loop would simply start again with no notification why.

Jean-Zombie commented 1 year ago

All good. Glad you liked it.