Cleanup last commit and remove potential bug
This commit is contained in:
parent
86d2990dfa
commit
165b34d74a
@ -10,8 +10,7 @@ def index_view(request):
|
||||
click_count = ClickCount.objects.first()
|
||||
# If the click_count is None, then we have not yet clicked
|
||||
if click_count is None:
|
||||
click_count = ClickCount(1)
|
||||
click_count.save()
|
||||
click_count = ClickCount(0)
|
||||
# Increment the click count
|
||||
click_count.clicks += 1
|
||||
click_count.save()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user