Skip to content

change slugged model to generate the slug instead making it user input - #869

Merged
Sahil590 merged 5 commits into
mainfrom
slug-model
Nov 27, 2026
Merged

Sahil590 merged 5 commits into
mainfrom
slug-model

Conversation

@Sahil590

Copy link
Copy Markdown
Contributor

Description

I have added a feature that will auto generate the slug instead of having the user input it using a post save signal which is why it can remain blank hence the migration.
Once I made the change I ran it through copilot and it mentioned a good point of making sure they are unique so it implemented a check to add numbers incase there are duplicates that exist.

Fixes #852

Type of change

  • Documentation (non-breaking change that adds or improves the documentation)
  • New feature (non-breaking change which adds functionality)
  • Optimization (non-breaking, back-end change that speeds up the code)
  • Technical work (non-breaking, change which is work as part of a new feature)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (whatever its nature)

Key checklist

  • All tests pass (eg. python -m pytest)
  • The documentation builds and looks OK (eg. mkdocs serve)
  • Pre-commit hooks run successfully (eg. pre-commit run --all-files)

Further checks

  • Code is commented, particularly in hard-to-understand areas
  • Tests added or an issue has been opened to tackle that in the future. (Indicate issue here: # (issue))

@codecov

codecov Bot commented Nov 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@AdrianDAlessandro AdrianDAlessandro left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Sahil590
Sahil590 enabled auto-merge November 27, 2026 16:32
@Sahil590
Sahil590 merged commit 1a95162 into main Nov 27, 2026
6 checks passed
@Sahil590
Sahil590 deleted the slug-model branch November 27, 2026 16:35
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

Successfully merging this pull request may close these issues.

Suggestions for slugs when adding new items (instead of us having to manually create a slug which is prone to typos)

2 participants