Compare commits
7 Commits
Author | SHA1 | Date |
---|---|---|
Darko Poljak | b508041e42 | |
Darko Poljak | 74425fccce | |
Darko Poljak | 4b3b403345 | |
Darko Poljak | 9bde544fa6 | |
Darko Poljak | 428fdfb202 | |
Darko Poljak | 1108b4701e | |
Darko Poljak | af11925b0d |
|
@ -11,7 +11,7 @@ Quick start
|
||||||
|
|
||||||
INSTALLED_APPS = (
|
INSTALLED_APPS = (
|
||||||
...
|
...
|
||||||
'polls',
|
'anonsurvey',
|
||||||
)
|
)
|
||||||
|
|
||||||
Anonsurvey admin also depends on:
|
Anonsurvey admin also depends on:
|
||||||
|
|
|
@ -54,7 +54,7 @@ class QuestionAdmin(admin.ModelAdmin):
|
||||||
'offeredanswer__answer_type',
|
'offeredanswer__answer_type',
|
||||||
'offeredanswer__text',
|
'offeredanswer__text',
|
||||||
'offeredanswer__sufix',)
|
'offeredanswer__sufix',)
|
||||||
list_filter = ('question_type', 'requires_answer', )
|
list_filter = ('question_type', 'requires_answer', 'survey' )
|
||||||
|
|
||||||
|
|
||||||
class QuestionGroupAdmin(admin.ModelAdmin):
|
class QuestionGroupAdmin(admin.ModelAdmin):
|
||||||
|
|
|
@ -63,7 +63,8 @@ def complete_survey(request, pk):
|
||||||
if not existing_answers:
|
if not existing_answers:
|
||||||
break
|
break
|
||||||
time.sleep(0.001)
|
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 = []
|
client_answers = []
|
||||||
# parse, validate and collect answers
|
# parse, validate and collect answers
|
||||||
# if survey is inactive questions is empty list (see above)
|
# if survey is inactive questions is empty list (see above)
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -8,7 +8,7 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='django-anonsurvey',
|
name='django-anonsurvey',
|
||||||
version='0.2.1',
|
version='0.2.4',
|
||||||
packages=['anonsurvey'],
|
packages=['anonsurvey'],
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
license='GPLv3',
|
license='GPLv3',
|
||||||
|
|
Loading…
Reference in New Issue