jazzband / django-categories

This app attempts to provide a generic category system that multiple apps could use. It uses MPTT for the tree storage and provides a custom admin for better visualization (copied and modified from feinCMS).
Apache License 2.0
462 stars 136 forks source link

Possibility of slug uniquess #116

Open aktywnitu opened 8 years ago

aktywnitu commented 8 years ago

Please consider to make slug unique by default or provide some method/configuration/documentation to achieve it.

Custom model overriding is not possible: django.core.exceptions.FieldError: Local field 'slug' in class 'Categories' clashes with field of similar name from base class 'CategoryBase'. So actual only possibility is modifying django-categories sourcecode. True? Or custom new CategoryBase model, but shouldn't it be more easy?

PetrDlouhy commented 6 years ago

Why the slug field is not unique in the first place? Is there any reason for that? What is the purpose of the slug then?