Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dont work whitch django-tenants 3.4.4 #170

Closed
cristianosavoia opened this issue Sep 2, 2022 · 11 comments
Closed

Dont work whitch django-tenants 3.4.4 #170

cristianosavoia opened this issue Sep 2, 2022 · 11 comments
Assignees
Labels
bug Something isn't working

Comments

@cristianosavoia
Copy link

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:

image
?

@cristianosavoia cristianosavoia added the bug Something isn't working label Sep 2, 2022
@fabiocaccamo
Copy link
Owner

fabiocaccamo commented Sep 2, 2022

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

@cristianosavoia
Copy link
Author

cristianosavoia commented Sep 2, 2022

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
Copy link
Author

the error happens when I make the migrate prevent continue

@fabiocaccamo
Copy link
Owner

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

@cristianosavoia
Copy link
Author

no, sorry unintentionally. reopen
Would you help me?

@merwok
Copy link
Contributor

merwok commented Sep 5, 2022

when I make the migrate prevent continue

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

@cristianosavoia
Copy link
Author

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.

@merwok
Copy link
Contributor

merwok commented Sep 11, 2022

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

@fabiocaccamo
Copy link
Owner

@cristianosavoia any feedback?

@fabiocaccamo
Copy link
Owner

fabiocaccamo commented Oct 6, 2022

@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 fabiocaccamo closed this as not planned Won't fix, can't repro, duplicate, stale Oct 6, 2022
@fabiocaccamo
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants