__str__ is not needed
This commit is contained in:
parent
21d8345da3
commit
6de467a569
2 changed files with 4 additions and 6 deletions
|
|
@ -36,10 +36,10 @@ class Enseignant(models.Model):
|
|||
return '{0} {1}'.format(self.nom, self.prenom)
|
||||
|
||||
def descr(self):
|
||||
return '{0} (<a href="mailto:{1}">{2}</A>)'.format(self.__str__(), self.email, self.email)
|
||||
return '{0} (<a href="mailto:{1}">{2}</A>)'.format(self, self.email, self.email)
|
||||
|
||||
def descr_pdf(self):
|
||||
return '{0} ({1})'.format(self.__str__(), self.email)
|
||||
return '{0} ({1})'.format(self, self.email)
|
||||
|
||||
|
||||
class Domaine(models.Model):
|
||||
|
|
|
|||
|
|
@ -1,12 +1,10 @@
|
|||
import os
|
||||
|
||||
from django.db.models import Sum, F
|
||||
|
||||
from django.conf import settings
|
||||
from django.contrib.auth.models import User
|
||||
from django.core import mail
|
||||
|
||||
from django.test import TestCase, Client
|
||||
from django.db.models import Sum, F
|
||||
from django.test import TestCase
|
||||
from django.urls import reverse
|
||||
|
||||
from cms.models import Domaine, Processus, Module
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue