forked from thoas/django-sluggable
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Still generate uniqueness lookups when a uniqueness field is empty.
In our specific example, we have Sections, with uniqueness on the tuple of (parent, instance). parent is optional and can be None, but we still want uniqueness of the tuple when that is the case.
- Loading branch information
Showing
3 changed files
with
23 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters