richardbarran / django-photologue

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

Photo.slug is ensured to be unique outside of bulk upload #217

Closed derek-adair closed 3 years ago

derek-adair commented 3 years ago

I'm working on a bulk upload using filepond and DRF-filepond - I noticed that slugs are only ensured to be unique in the bulk upload zip form.

In the future... _generate_slug can probably be an abstract class which would allow us to ensure Gallery Slugs to be unique as well as any custom models users have created.

derek-adair commented 3 years ago

Just realized this is breaking the bulk upload unique title constraint for photos. Closing for now until I can come up with a solution that is palletable.

Likely going to be having _generate_slug return a unique title as well? not sure...