django-tenant-schemas
django-tenant-schemas copied to clipboard
Support non-auto-incrementing ids for Tenant model
If you use non-incrementing ids (like UUIDs) for models, then checking instance.pk no longer properly indicates whether the instance has been saved. Instead we can use instance._state.adding
Let me know if there are any updates to documentation or tests that you'd like to see before considering this Pull Request.