repair user merging tool (#498)

This commit is contained in:
thomas girod
2023-03-04 15:01:08 +01:00
committed by GitHub
parent 585923c827
commit a73fe598ef
4 changed files with 321 additions and 76 deletions

View File

@ -165,7 +165,4 @@ class Subscription(models.Model):
return user.is_in_group(settings.SITH_MAIN_BOARD_GROUP) or user.is_root
def is_valid_now(self):
return (
self.subscription_start <= date.today()
and date.today() <= self.subscription_end
)
return self.subscription_start <= date.today() <= self.subscription_end