Pierre-Sassoulas / django-survey

A django survey app that can export results as CSV or PDF using your native language.
GNU Affero General Public License v3.0
217 stars 145 forks source link

amend existing survey vs new survey #186

Open JackBurns1984 opened 7 months ago

JackBurns1984 commented 7 months ago

Hi, looking for advise over an issues:

At present, if someone is logged in I only have a button to go into the survey and update the existing answers, but can you think of a way to have 2 buttons, 1 to enter a new survey and 1 to amend the existing survey.

I can see the for loop in list.html but wondering how I can "check if data is present" and do an "amend" button and a "new" button.

Pierre-Sassoulas commented 7 months ago

You could check if an answers exists in the survey and add a button for the edit case if that's the case. Pull request welcome :)

JackBurns1984 commented 7 months ago

good thinking, thank you - now to see where I can pull the answer from 👍 i can see survey.{things} so hopefully in that ball park.

thanks