Generate unique slugs for newly submitted images.

This commit is contained in:
Aaron Williamson
2011-05-13 12:18:52 -04:00
parent a8e2812b05
commit 0546833c6e
6 changed files with 37 additions and 2 deletions

View File

@@ -52,6 +52,9 @@ def submit_start(request):
# it to generate the file path
entry.save(validate=False)
# Generate a slug from the title
entry.generate_slug()
# Now store generate the queueing related filename
queue_filepath = request.app.queue_store.get_unique_filepath(
['media_entries',