From effd58a424fd48b1c121dfd7cff0f0eddea46ae9 Mon Sep 17 00:00:00 2001 From: Aarni Halinen Date: Tue, 2 Apr 2019 15:16:23 +0300 Subject: [PATCH] Remove ilmotunkki --- ilmotunkki/README.md | 49 ------------------------------- ilmotunkki/__init__.py | 0 ilmotunkki/admin.py | 3 -- ilmotunkki/apps.py | 5 ---- ilmotunkki/migrations/__init__.py | 0 ilmotunkki/models.py | 16 ---------- ilmotunkki/tests.py | 3 -- ilmotunkki/views.py | 3 -- 8 files changed, 79 deletions(-) delete mode 100644 ilmotunkki/README.md delete mode 100644 ilmotunkki/__init__.py delete mode 100644 ilmotunkki/admin.py delete mode 100644 ilmotunkki/apps.py delete mode 100644 ilmotunkki/migrations/__init__.py delete mode 100644 ilmotunkki/models.py delete mode 100644 ilmotunkki/tests.py delete mode 100644 ilmotunkki/views.py diff --git a/ilmotunkki/README.md b/ilmotunkki/README.md deleted file mode 100644 index 686d79f..0000000 --- a/ilmotunkki/README.md +++ /dev/null @@ -1,49 +0,0 @@ -# Ilmotunkki - -## Terms -- Signup, Form with collection of questions -- Response, One answer to some signup -- Quota, Amount of people allowed to respond with some option selected. - - In generic case there is no option and quota is just max number of people. - -## Requirements - -- Officials may generate signups forms -- Officials may see results from signups -- Officials may see some stats from their signups - - for example distributions of multiple choice answers -- Officials should be able to edit signups wherever possible - - Propably not possible to edit after first response -- Officials should be able to delete responses -- Officials should be able to embed payment information to the signup? - - TODO: is there need for unique reference numbers for every response? -- Officials should be able to save a signup to a reusable template. - - Possibility to save templates? - -- Signup may be attached to an event - - Multiple signups to a single event should be possible (FTMK uses for museum visits? Erna asked if it was possible in old web) - - Possibility for external service (Google Form, URL will suffice) - -- Signup should support custom quotas - - Atleast quotas from multiple choices and checkboxes - - Text quotas are risky (typos everywhere!!) -- Signup should have start and end times -- Signup should support atleast following questiontypes - - Text - - multiple choice (select one) - - checkbox (boolean yes/no) - -- Signup should support reserve slots. - - TODO: quota based reserves or generic? or both? - -- Responding should send confirm email -- Response should be editable by responder and only by the responder until the closing of the signup - - TODO: is there need to custom edit period or disable? - -- Responders should see amount of quotas left. -- Responders should see some information about other responses - - TODO: names? should this be editable by officials? - - Or superadmin can edit and the one signing up within edit period - - NOTE: Quota related info is exposed if any info is printed - - When quotas need to be hidden? PoTa? - diff --git a/ilmotunkki/__init__.py b/ilmotunkki/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/ilmotunkki/admin.py b/ilmotunkki/admin.py deleted file mode 100644 index 8c38f3f..0000000 --- a/ilmotunkki/admin.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.contrib import admin - -# Register your models here. diff --git a/ilmotunkki/apps.py b/ilmotunkki/apps.py deleted file mode 100644 index c5dcacb..0000000 --- a/ilmotunkki/apps.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.apps import AppConfig - - -class IlmotunkkiConfig(AppConfig): - name = 'ilmotunkki' diff --git a/ilmotunkki/migrations/__init__.py b/ilmotunkki/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/ilmotunkki/models.py b/ilmotunkki/models.py deleted file mode 100644 index c2a1504..0000000 --- a/ilmotunkki/models.py +++ /dev/null @@ -1,16 +0,0 @@ -from django.db import models -from django.utils import timezone - - -class Signup(models.Model): - start = models.DateTimeField() - end = models.DateTimeField() - - -class Question(models.Model): - pass - - -class Answer(models.Model): - signup = models.ForeignKey(Signup, on_delete=models.CASCADE) - question = models.ForeignKey(Question, on_delete=models.PROTECT) diff --git a/ilmotunkki/tests.py b/ilmotunkki/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/ilmotunkki/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/ilmotunkki/views.py b/ilmotunkki/views.py deleted file mode 100644 index 91ea44a..0000000 --- a/ilmotunkki/views.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.shortcuts import render - -# Create your views here.