django-tenant-schemas icon indicating copy to clipboard operation
django-tenant-schemas copied to clipboard

Support non-auto-incrementing ids for Tenant model

Open JamesMaroney opened this issue 7 years ago • 0 comments

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.

JamesMaroney avatar Nov 20 '18 23:11 JamesMaroney