javed-karim / django-survey

Automatically exported from code.google.com/p/django-survey
0 stars 0 forks source link

Image management for Question and Choice #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The models.py for Question and Choice enable an administrator to add an image. 
As of now there is several problem associated with this feature : 
 * the settings.py do not provide with a reasonable default
 * It is impossible to delete a file in admin interface. This issue might
be solved by newforms-admin
 * The files are not displayed in survey_detail (need to modify the template)
 * It is impossible to add an image to a question using question_add and
question_update
 * It is impossible to add an image to a choice using choice_add and
choice_update

I will use this ticket to track the progress I am making in this area.

Original issue reported on code.google.com by yann.ma...@gmail.com on 26 May 2008 at 3:38

GoogleCodeExporter commented 8 years ago
I have commited in change set r34 a a fix to some of the issues described above 
: 
 * reasonable default for settings.py : I am making the assumption that you have a
webserver serving the files located in "examples/site_media/"
 * It is now possible to add an image for question and choice
 * The images are displayed in survey_detail

Original comment by yann.ma...@gmail.com on 26 May 2008 at 9:06

GoogleCodeExporter commented 8 years ago
The changeset r36 includes the following Fixes :
  * You can now delete images related to a question or choice
  * The image is displayed in the page where you can update a question and a choice

This bundle of changesets fixes all the issues describe in this ticket. 

Original comment by yann.ma...@gmail.com on 27 May 2008 at 2:37