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

Saving events with same title fails #45

Open
jeverling opened this issue Apr 20, 2022 · 0 comments
Open

Saving events with same title fails #45

jeverling opened this issue Apr 20, 2022 · 0 comments

Comments

@jeverling
Copy link

Hi, and many thanks for this cool project! I want to use it as a workout tracker, so I'll have repeating events that are not recurrent events, e.g. Deadlifts.
Wagtail refuses to save EventPages with the same slug. It's not a big deal to update the slug manually, but it would be nice if jouyous would take care of that automatically. I can imagine several use cases where it can happen over time that someone tries to create a new event with a title that already has been used at some point before.
I have created a small WIP PR with an approach based on https://stackoverflow.com/a/43803611

If you think that's a good idea, I'm happy to add tests, or maybe even a settings flag if you think it would be better to make this optional.

jeverling added a commit to jeverling/ls.joyous that referenced this issue Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant