kolofordjango / kolo

See everything happening in your running Django app. All without leaving VSCode
https://kolo.app
504 stars 14 forks source link

Drop-down list in templates #24

Closed febqij closed 2 years ago

febqij commented 2 years ago

Hello, I found that when Kolo is enabled in MIDDLEWARE settings, choice fields are no longer displayed on the site pages, they become empty, because for some reason data from ForeignKey models does not get into the template.

LilyFoote commented 2 years ago

@febqij Hi! Can you share the source code that isn't working correctly? If it's too big or you're not free to share it, can you try to make a small example that also has the bug?

febqij commented 2 years ago

https://github.com/febqij/hw05_final.git I'm sorry if I bothered you in vain, of course. I'm just learning and using your debug tool. \hw05_final\yatube\yatube\settings.py 72th: MIDDLEWARE with classic "debug_toolbar" its work fine for comparison. You can try to clone the repository and run the application locally. Then log in through the .../admin panel and try to add a new post. What is through the site panel, what is through the admin panel in the case of the added kolo, the drop-down lists of groups will be empty. Without - work fine. I just noticed it and I don't know if I did what I wrote correctly. In any case, if I wrote where it is not supposed to, close this issue.

LilyFoote commented 2 years ago

Thanks! I'll look into it in two weeks when I'm back from travelling.

LilyFoote commented 2 years ago

Actually, I have some time now and I have replicated the bug.

LilyFoote commented 2 years ago

I have found the bug. The fix should be in 2.0.2 when we release it.

LilyFoote commented 2 years ago

@febqij I've just release 2.0.2 which should fix this.