.
This commit is contained in:
+1
-1
@@ -1735,7 +1735,7 @@ class ExamCollection(models.Model, AuthorMixin):
|
||||
)
|
||||
|
||||
def __str__(self):
|
||||
if self.date is not None and self.date is not "":
|
||||
if self.date is not None and self.date != "":
|
||||
return f"{self.name} [{self.date}]"
|
||||
else:
|
||||
return f"{self.name}"
|
||||
|
||||
Reference in New Issue
Block a user