django-admin-interface icon indicating copy to clipboard operation
django-admin-interface copied to clipboard

Dont work whitch django-tenants 3.4.4

Open cristianosavoia opened this issue 3 years ago • 8 comments

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 avatar Sep 02 '22 08:09 cristianosavoia

@cristianosavoia what do you mean by "no migrate"? If you don't migrate, you don't have the db tables ...

fabiocaccamo avatar Sep 02 '22 09:09 fabiocaccamo

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

cristianosavoia avatar Sep 02 '22 21:09 cristianosavoia

the error happens when I make the migrate prevent continue

cristianosavoia avatar Sep 02 '22 21:09 cristianosavoia

@cristianosavoia why you closed this? Did you find a solution?

fabiocaccamo avatar Sep 03 '22 08:09 fabiocaccamo

no, sorry unintentionally. reopen Would you help me?

cristianosavoia avatar Sep 05 '22 19:09 cristianosavoia

when I make the migrate prevent continue

We can’t understand what this means, can you rephrase?

merwok avatar Sep 05 '22 22:09 merwok

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.

cristianosavoia avatar Sep 10 '22 01:09 cristianosavoia

Can you publish a demo somewhere with code that reproduces the problem? Otherwise it’s hard to help here.

merwok avatar Sep 11 '22 00:09 merwok

@cristianosavoia any feedback?

fabiocaccamo avatar Sep 25 '22 19:09 fabiocaccamo

@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.

fabiocaccamo avatar Oct 06 '22 12:10 fabiocaccamo

@cristianosavoia could you check if this has been fixed in 0.22.2 version?

fabiocaccamo avatar Nov 18 '22 20:11 fabiocaccamo