Skip to content

Commit

Permalink
fix #4834 : le tocken d'activation n'est pas envoyé à cause d'une err…
Browse files Browse the repository at this point in the history
…eur de syntaxe
  • Loading branch information
fdambrine authored and artragis committed Jan 21, 2018
1 parent 05efcdb commit 3536916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zds/member/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def post(self, request, *args, **kwargs):
def form_valid(self, form):
# Delete old token
token = TokenRegister.objects.filter(user=self.usr)
if token.count >= 1:
if token.count() >= 1:
token.all().delete()

# Generate new token and send email
Expand Down

0 comments on commit 3536916

Please sign in to comment.