johnmnemonik / django-photologue

Automatically exported from code.google.com/p/django-photologue
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

GalleryUpload with len(title) > 50 causes a crash. #151

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When processing the upload, the title gets sluggified (line 213) and used
as a slug in a new Gallery object.
The slug field is limited to 50 chars (Django default value) so if the
title length is greater than 50 chars, we have a crash.

There is a design flaw: both Gallery and Photo models have title fields
with length = 100, but slug fields with length = 50.

When using the admin interface, the JS that fills in the slug form field
auto-limits it to 50 chars. However, when a Gallery or a Photo is created
in code (for example, in a GalleryUpload) there is no safeguard.

Original issue reported on code.google.com by richardb...@gmail.com on 2 Mar 2010 at 7:25

GoogleCodeExporter commented 8 years ago

Original comment by justin.d...@gmail.com on 2 Mar 2010 at 7:37

GoogleCodeExporter commented 8 years ago
See issue 11 on Github project page.

Original comment by richardb...@gmail.com on 12 Aug 2012 at 10:28