Removing Expireable from PlaceVote
This commit is contained in:
parent
86c9de3213
commit
a2ee323fa4
@ -221,12 +221,11 @@ class PlaceVoteView(IsEligibleToSeePlaceMixin, View):
|
|||||||
voting = PlaceVoting.objects.create(
|
voting = PlaceVoting.objects.create(
|
||||||
submitted_by=explorer,
|
submitted_by=explorer,
|
||||||
place=place,
|
place=place,
|
||||||
vote=vote,
|
vote=vote
|
||||||
expires_when=timezone.now()+self.delta
|
|
||||||
)
|
)
|
||||||
messages.success(self.request, _('Vote submitted'))
|
messages.success(self.request, _('Vote submitted'))
|
||||||
else:
|
else:
|
||||||
voting.expires_when=timezone.now()+self.delta
|
voting.submitted_when = timezone.now()
|
||||||
voting.vote = vote
|
voting.vote = vote
|
||||||
messages.success(self.request, _('Your vote has been update'))
|
messages.success(self.request, _('Your vote has been update'))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user