Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
MOOC packages by hacklab
django-courses
Commits
6df26efa
Commit
6df26efa
authored
Sep 16, 2020
by
Laury Bueno
Browse files
[Certification] Remove compatibility code for Python 2 from models
parent
01f61a30
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
courses/certification/models.py
courses/certification/models.py
+0
-10
No files found.
courses/certification/models.py
View file @
6df26efa
...
...
@@ -83,9 +83,6 @@ class CourseCertification(models.Model):
class
Meta
:
verbose_name
=
_
(
"Certificate"
)
def
__unicode__
(
self
):
return
u
'({0}): {1}'
.
format
(
self
.
course_student
,
self
.
is_valid
)
def
__str__
(
self
):
return
'({0}): {1}'
.
format
(
self
.
course_student
,
self
.
is_valid
)
...
...
@@ -117,9 +114,6 @@ class Evaluation(models.Model):
class
Meta
:
verbose_name
=
_
(
'Evaluation'
)
def
__unicode__
(
self
):
return
u
'({0}): {1}'
.
format
(
self
.
klass
,
self
.
instructions
)
def
__str__
(
self
):
return
'({0}): {1}'
.
format
(
self
.
klass
,
self
.
instructions
)
...
...
@@ -192,10 +186,6 @@ class CertificationProcess(models.Model):
class
Meta
:
verbose_name
=
_
(
"Certification Process"
)
def
__unicode__
(
self
):
return
u
'({0}): {1}'
.
format
(
self
.
course_certification
.
course_student
.
user
,
self
.
evaluation
)
def
__str__
(
self
):
return
'({0}): {1}'
.
format
(
self
.
course_certification
.
course_student
.
user
,
self
.
evaluation
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment