-
Notifications
You must be signed in to change notification settings - Fork 706
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
Two models named "Post" causes confusion in admin area #150
Comments
After some more testing, I wanted to add that for whatever reason, after changing my models to unique names instead of both being "Post" the issue went away. A little while later, the issue came back again, so it's definitely not related to having two models named the same in two different apps. |
Please post your MENU config. Thanks. |
Thanks for the reply. I'm sorry for my ignorance, but I have no idea where my MENU Config is located so that I can post it? |
Sorry, doesn't seem to be formatting that code correctly. I hope you get the idea. |
Please post content of your |
Here is my models.py for my "Blog:" http://dpaste.com/1384612/ And here is my models.py for my "Shares:" http://dpaste.com/1384614/ |
But previously you wrote, that you changed to unique names and problem still appeared. |
Correct. I changed everthing to use unique names and the problem went away for probably 30 minutes and magically came back with the unique names. So, given that I wanted non-unique names and the problem was still happening with unique names, I changed everything back again. Sorry.. I'm new to all this so I'm probably not doing things the most efficient way. |
I fixed the problem. Please test if it works correctly using latest development version:
|
Looks like things are fixed! Thanks so much for bearing with my ignorance on this and fixing it so quickly. I was afraid I was doing something incorrectly. :) |
Hi,
I have two apps currently in development. I have "Shares" and "Blog." I've named the model for both of these apps "Post." Everything works fine except for the left sidebar menu highlighting. It seems to get confused by the two models being named the same.
For example, if I go to "Blog" and add a new entry, "Blog" in the sidebar is highlighted with blue background to indicate what I'm posting into. If I then go to "Shares" and click to make a new post, "Shares" background in the sidebar menu does not turn blue, "Blog" in the sidebar menu actually is the link that turns blue. The breadcrumb trail at the top seems to be okay and it actually takes me to the correct form, it's just that the sidebar menu seems confused on what section I'm in.
The text was updated successfully, but these errors were encountered: