django-admin-interface
django-admin-interface copied to clipboard
Dont work whitch django-tenants 3.4.4
Python version 3.10
Django version 4.1
Package version django-admin-interface 0.20.0
Current behavior (bug description) after install django-tenants 3.4.4 no migrate the error is:
@cristianosavoia what do you mean by "no migrate"? If you don't migrate, you don't have the db tables ...
I have the tables everything ok, it was working perfect, however when installing django-tenants I do the migrate the error happens because of the admin interface, if I remove the adim inteface everything is ok. error this must be an incompatibility with the django-tenant module?
the error happens when I make the migrate prevent continue
the error happens when I make the migrate prevent continue
@cristianosavoia why you closed this? Did you find a solution?
no, sorry unintentionally. reopen Would you help me?
when I make the migrate prevent continue
We can’t understand what this means, can you rephrase?
Using admin interference normally occurs after installing django-tenants the error shown above occurs. It seems to me that there is some bug to use the two together.
Can you publish a demo somewhere with code that reproduces the problem? Otherwise it’s hard to help here.
@cristianosavoia any feedback?
@cristianosavoia the message in screenshot you provided tells about a missing relation, and since this library model doesn't have any relation, I'm pretty sure that django-tenants creates relations between the tenant model and all other models.
If you have installed django-admin-interface after you already had django-tenants installed and configured, I suppose you should also run django-tenants's migrations or its own command(s) for generating/managing data-schemas (sorry, I don't know exactly, I never used it).
I close this issue because it's stale and also because I don't think that this problem you have can be solved on this side of the code, if you don't solve it with the suggestion above (but if you do please tell me that I'm curious to know), you should open an issue on django-tenants repository.
even in the cause this issue is real, it's a django-tenants's issue and nothing can be done on this side.
@cristianosavoia could you check if this has been fixed in 0.22.2 version?