From 2cefc4779a537d0ac11250dc93644719b5dce755 Mon Sep 17 00:00:00 2001 From: Chif Gergo <chifgeri97@gmail.com> Date: Tue, 28 Nov 2017 20:27:19 +0100 Subject: [PATCH] Kisebb hibajavitasok --- src/account/models.py | 3 +-- src/stats/models.py | 1 - src/stats/tests.py | 3 --- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/account/models.py b/src/account/models.py index 9463662..6b0bb79 100644 --- a/src/account/models.py +++ b/src/account/models.py @@ -1,6 +1,5 @@ from django.db import models from django.contrib.auth.models import User -from django.utils import timezone from django.core.exceptions import ValidationError import datetime @@ -23,5 +22,5 @@ class Profile(models.Model): return self.user.username def clean(self): - if self.join_date > datetime.date.today() or self.join_date < datetime.date(2015, 1,1): + if self.join_date > datetime.date.today() or self.join_date < datetime.date(2015, 1, 1): raise ValidationError('Invalid date') diff --git a/src/stats/models.py b/src/stats/models.py index c21c721..b3cea98 100644 --- a/src/stats/models.py +++ b/src/stats/models.py @@ -2,7 +2,6 @@ from django.db import models from account.models import Profile from django.utils import timezone from django.core.exceptions import ValidationError -# Create your models here. class KszkEvent(models.Model): diff --git a/src/stats/tests.py b/src/stats/tests.py index 7ce503c..e69de29 100644 --- a/src/stats/tests.py +++ b/src/stats/tests.py @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. -- GitLab