Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
13b91b5f
authored
Nov 11, 2013
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: adding Activity models __unicode__
parent
a0a810af
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
circle/common/models.py
+6
-0
No files found.
circle/common/models.py
View file @
13b91b5f
...
@@ -32,6 +32,12 @@ class ActivityModel(TimeStampedModel):
...
@@ -32,6 +32,12 @@ class ActivityModel(TimeStampedModel):
result
=
TextField
(
verbose_name
=
_
(
'result'
),
blank
=
True
,
null
=
True
,
result
=
TextField
(
verbose_name
=
_
(
'result'
),
blank
=
True
,
null
=
True
,
help_text
=
_
(
'Human readable result of activity.'
))
help_text
=
_
(
'Human readable result of activity.'
))
def
__unicode__
(
self
):
if
self
.
parent
:
return
self
.
parent
.
activity_code
+
"->"
+
self
.
activity_code
else
:
return
self
.
activity_code
class
Meta
:
class
Meta
:
abstract
=
True
abstract
=
True
...
...
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