From 027e89e4abeda7fe7dd16942cd0a352475d06bd3 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Sat, 18 Mar 2017 16:03:10 +0100 Subject: [PATCH] super() in py3 --- src/utils/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/models.py b/src/utils/models.py index 7a73bd86..43375752 100644 --- a/src/utils/models.py +++ b/src/utils/models.py @@ -57,7 +57,7 @@ class CampRelatedModel(CreatedUpdatedModel): messages.error(self.request, 'Camp is in read only mode.') raise ValidationError('This camp is in read only mode.') - super(CampRelatedModel, self).save(**kwargs) + super().save(**kwargs) def delete(self, **kwargs): if self.camp.read_only: @@ -65,4 +65,4 @@ class CampRelatedModel(CreatedUpdatedModel): messages.error(self.request, 'Camp is in read only mode.') raise ValidationError('This camp is in read only mode.') - super(CampRelatedModel, self).save(**kwargs) + super().delete(**kwargs)