cleaned up code for notes module

This commit is contained in:
artus40
2018-03-02 14:50:41 +01:00
parent 85f388aac2
commit 7fdb7e9f31
4 changed files with 16 additions and 15 deletions

View File

@@ -1,11 +1,10 @@
import logging
from django.utils import timezone
from django.core.exceptions import ValidationError
from django.shortcuts import reverse
from django.db import models
from . import managers
from statistiques.models import FicheStatistique
logger = logging.getLogger(__name__)
@@ -55,7 +54,6 @@ class Sujet(models.Model):
def save(self, *args, **kwargs):
self.clean()
if not self.id:
from statistiques.models import FicheStatistique
super().save(*args, **kwargs)
FicheStatistique.objects.create(sujet=self)
else: