Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
test-it
test_oauth2_django
Commits
8b5c4705
Commit
8b5c4705
authored
Nov 05, 2017
by
Sharad Heft
Browse files
Add a __str__ method for the Character model.
parent
cd55bb80
Changes
1
Hide whitespace changes
Inline
Side-by-side
test_oauth/models.py
View file @
8b5c4705
...
...
@@ -19,6 +19,9 @@ class Character(models.Model):
verbose_name
=
'Character'
verbose_name_plural
=
'Characters'
def
__str__
(
self
):
return
self
.
name
class
TESTOAuth2Data
(
models
.
Model
):
user
=
models
.
OneToOneField
(
...
...
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