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

Allow duplicate categories wrt appconfigs #804

Open
jbazik opened this issue Aug 23, 2024 · 0 comments
Open

Allow duplicate categories wrt appconfigs #804

jbazik opened this issue Aug 23, 2024 · 0 comments

Comments

@jbazik
Copy link

jbazik commented Aug 23, 2024

Description

Allow blogs on the same site but attached to different apphooks to have duplicate categories.

In our case, we have two related blogs with different audiences ("blog" and "news"), and if we create a category (e.g. "awards") in one, we cannot create it in the other. Appconfigs enforce separation, so having "global" categories doesn't make sense.

Proposed solution

Add appconfig to the uniqueness constraint on BlogCategory.

Alternatives

It's possible to use one appconfig on multiple sites, and that's what we've done in the past. I'm trying to move away from a multi-site solution to something simpler.

Additional information

We're running django 4.2, djangocms 3.11 and djangocms-blog 2.0.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant