forked from ScoDoc/ScoDoc
repr
This commit is contained in:
parent
91544aa254
commit
f7e908c92d
@ -60,7 +60,7 @@ class Identite(db.Model):
|
|||||||
admission = db.relationship("Admission", backref="identite", lazy="dynamic")
|
admission = db.relationship("Admission", backref="identite", lazy="dynamic")
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return f"<Etud {self.id} {self.nom} {self.prenom}>"
|
return f"<Etud {self.id} {self.nom!r} {self.prenom!r}>"
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_request(cls, etudid=None, code_nip=None):
|
def from_request(cls, etudid=None, code_nip=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user