Compare commits

...

7 commits

Author SHA1 Message Date
Darko Poljak
b508041e42 Fix README.rst typo. 2014-06-18 22:07:40 +02:00
Darko Poljak
74425fccce Inc version. 2014-06-18 22:00:52 +02:00
Darko Poljak
4b3b403345 Remove IP address from client_id - PRIVACY 2014-06-18 21:59:09 +02:00
Darko Poljak
9bde544fa6 Merge branch 'master' of https://github.com/darko-poljak/django-anonsurvey 2014-03-10 18:01:06 +01:00
Darko Poljak
428fdfb202 add question list filter by survey 2014-03-10 08:04:22 +01:00
Darko Poljak
1108b4701e add question list filter by survey 2014-03-10 08:04:04 +01:00
Darko Poljak
af11925b0d add question list filter by survey 2014-03-10 07:59:53 +01:00
4 changed files with 5 additions and 4 deletions

View file

@ -11,7 +11,7 @@ Quick start
INSTALLED_APPS = (
...
'polls',
'anonsurvey',
)
Anonsurvey admin also depends on:

View file

@ -54,7 +54,7 @@ class QuestionAdmin(admin.ModelAdmin):
'offeredanswer__answer_type',
'offeredanswer__text',
'offeredanswer__sufix',)
list_filter = ('question_type', 'requires_answer', )
list_filter = ('question_type', 'requires_answer', 'survey' )
class QuestionGroupAdmin(admin.ModelAdmin):

View file

@ -63,7 +63,8 @@ def complete_survey(request, pk):
if not existing_answers:
break
time.sleep(0.001)
client_id = '{}@{}'.format(client_id, utils.get_client_ip(request))
# remove ip address from client_id - PRIVACY
# client_id = '{}@{}'.format(client_id, utils.get_client_ip(request))
client_answers = []
# parse, validate and collect answers
# if survey is inactive questions is empty list (see above)

View file

@ -8,7 +8,7 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-anonsurvey',
version='0.2.1',
version='0.2.4',
packages=['anonsurvey'],
include_package_data=True,
license='GPLv3',