Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
62b6894c
Commit
62b6894c
authored
4 years ago
by
Tom Teichler
Browse files
Options
Downloads
Patches
Plain Diff
Add missing __str__ methods
parent
1d045dfb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!316
Resolve "Add missing __str__ methods"
Pipeline
#2829
passed
4 years ago
Stage: test
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/core/models.py
+6
-0
6 additions, 0 deletions
aleksis/core/models.py
with
6 additions
and
0 deletions
aleksis/core/models.py
+
6
−
0
View file @
62b6894c
...
...
@@ -300,6 +300,9 @@ class AdditionalField(ExtensibleModel):
verbose_name
=
_
(
"
Type of field
"
),
choices
=
FIELD_CHOICES
,
max_length
=
50
)
def
__str__
(
self
)
->
str
:
return
self
.
title
class
Meta
:
verbose_name
=
_
(
"
Addtitional field for groups
"
)
verbose_name_plural
=
_
(
"
Addtitional fields for groups
"
)
...
...
@@ -718,6 +721,9 @@ class GroupType(ExtensibleModel):
name
=
models
.
CharField
(
verbose_name
=
_
(
"
Title of type
"
),
max_length
=
50
)
description
=
models
.
CharField
(
verbose_name
=
_
(
"
Description
"
),
max_length
=
500
)
def
__str__
(
self
)
->
str
:
return
self
.
name
class
Meta
:
verbose_name
=
_
(
"
Group type
"
)
verbose_name_plural
=
_
(
"
Group types
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment