CategoryImage model has unique_together=('category', 'sort')

Issue #1140 new
Eric Bartels created an issue

The CategoryImage model currently has: {{{ unique_together = (('category', 'sort'),) }}} This complicates changing the sort field for multiple images in a category without getting errors. For example, using inline forms in the Category admin, if you change the values of the sort fields for your images you get the error "Category Image with this Category and Sort Order already exists."

Comments (0)

  1. Log in to comment