From b66d000ee469539ce7aea557b612c0444177e36d Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 15 Aug 2020 11:58:34 -0400 Subject: archived old unused apps and migrated fieldnotes to posts --- app/prompts/views.py | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 app/prompts/views.py (limited to 'app/prompts/views.py') diff --git a/app/prompts/views.py b/app/prompts/views.py deleted file mode 100644 index 4744299..0000000 --- a/app/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() -- cgit v1.2.3-70-g09d2