summaryrefslogtreecommitdiff
path: root/app/unused_apps/prompts/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/unused_apps/prompts/views.py')
-rw-r--r--app/unused_apps/prompts/views.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/app/unused_apps/prompts/views.py b/app/unused_apps/prompts/views.py
deleted file mode 100644
index 4744299..0000000
--- a/app/unused_apps/prompts/views.py
+++ /dev/null
@@ -1,11 +0,0 @@
-from django.views.generic.detail import DetailView
-
-from .models import Prompt
-
-
-class PromptList(DetailView):
- model = Prompt
-
- def get_object(self, queryset):
- """ This might be faster: random.choice(Prompt.objects.all())"""
- return Prompt.objects.order_by('?').first()