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
Christopher M Reffett
go
Commits
5b94f9b7
Commit
5b94f9b7
authored
Mar 31, 2014
by
Jean Michel Rouly
Browse files
Made more explicit url model unicode representations
parent
81ed5bd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
go/go/models.py
View file @
5b94f9b7
...
...
@@ -21,7 +21,7 @@ class URL( models.Model ):
expires
=
models
.
DateTimeField
(
blank
=
True
,
null
=
True
)
def
__unicode__
(
self
):
return
'<
URL
: %s>'
%
self
.
short
return
'<
%s
: %s>'
%
(
self
.
owner
.
username
,
self
.
target
)
class
Meta
:
ordering
=
[
'short'
]
...
...
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