Files
heinzel 98a6fc3ce7
All checks were successful
buildbot/tox Build done.
try to make pylint happy
2022-06-08 00:08:09 +02:00

12 lines
278 B
Python

from django.utils import timezone
from ..models import Registration
THIS_YEAR = timezone.now().year
class RegistrationMixin: # pylint: disable=too-few-public-methods
def create_registration(self, data):
r = Registration(**data)
r.save()
return r