Commit 1e056a78 authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Merge branch 'fix_datetime_bug' into 'master'

Fix TypeError in active member function



See merge request !39
parents 0c6a5c7a 25e2c8b0
......@@ -299,7 +299,7 @@ class Membership(models.Model):
return self.user.member
def is_active(self):
return not self.until or self.until > timezone.now()
return not self.until or self.until > timezone.now().date()
class BecomeAMemberDocument(models.Model):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment