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

Make category slugs dashboard-editable. #3489

Merged
merged 1 commit into from
Sep 10, 2020
Merged

Make category slugs dashboard-editable. #3489

merged 1 commit into from
Sep 10, 2020

Conversation

solarissmoke
Copy link
Member

Make category slugs editable from the dashboard, so that admins can modify them if they change a category name etc.

Fixes #561, fixes #3472.

@codecov
Copy link

codecov bot commented Sep 2, 2020

Codecov Report

Merging #3489 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #3489   +/-   ##
=======================================
  Coverage   85.17%   85.18%           
=======================================
  Files         289      289           
  Lines       15532    15538    +6     
=======================================
+ Hits        13230    13236    +6     
  Misses       2302     2302           
Impacted Files Coverage Δ
src/oscar/apps/dashboard/catalogue/forms.py 97.51% <100.00%> (+0.07%) ⬆️

src/oscar/apps/dashboard/catalogue/forms.py Show resolved Hide resolved
super().__init__(*args, **kwargs)
if 'slug' in self.fields:
self.fields['slug'].required = False
self.fields['slug'].help_text = _('Leave blank to generate from category name')
Copy link
Member

Choose a reason for hiding this comment

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

Is this string allready present in the gettext catalog?

Copy link
Member Author

Choose a reason for hiding this comment

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

No - but I've been periodically updating the gettext catalog separately from functional changes, because it introduces a huge diff that makes review harder.

@solarissmoke solarissmoke merged commit ce36ce7 into django-oscar:master Sep 10, 2020
@solarissmoke solarissmoke deleted the fix/category-slug-editable branch September 10, 2020 11:29
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.

Category slug doesn't get updated Allow a category slug to be edited
3 participants