richardbarran / django-photologue

A customizable plug-in photo gallery management application for the Django web framework.
BSD 3-Clause "New" or "Revised" License
674 stars 239 forks source link

Should Photo.title be unique? #218

Closed derek-adair closed 2 years ago

derek-adair commented 2 years ago

With Photo.slug being unique it seems superfluous to disallow duplicate titles.

richardbarran commented 2 years ago

If a user in the admin is selecting the Photos to include in a Gallery, the titles need to be unique - otherwise they won't be able to tell which Photo they are picking. I'm closing this as a "won't fix" unless someone can convince me otherwise :-)

derek-adair commented 2 years ago

Ah, yes good point. Personally I will be modifying my install to include the thumbnail as well as the title with a hover tooltip showing the full size image. Easily could see Photo.slug being a valid alternative to the image title.

Another possibility is to add display_title be non unique.

If none of those are desirable, perhaps some kind of auto incrementing title at the model level.


Just spitballing here, I do not feel strongly about these things.