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
668c2659
authored
Oct 28, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
common: fix HumanSortField
parent
1e26bc6e
Hide 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 @
668c2659
...
@@ -370,6 +370,12 @@ class HumanSortField(CharField):
...
@@ -370,6 +370,12 @@ class HumanSortField(CharField):
def
get_monitored_value
(
self
,
instance
):
def
get_monitored_value
(
self
,
instance
):
return
getattr
(
instance
,
self
.
monitor
)
return
getattr
(
instance
,
self
.
monitor
)
def
deconstruct
(
self
):
name
,
path
,
args
,
kwargs
=
super
(
HumanSortField
,
self
)
.
deconstruct
()
if
self
.
monitor
is
not
None
:
kwargs
[
'monitor'
]
=
self
.
monitor
return
name
,
path
,
args
,
kwargs
@staticmethod
@staticmethod
def
_partition
(
s
,
pred
):
def
_partition
(
s
,
pred
):
"""Partition a deque of chars to a tuple of a
"""Partition a deque of chars to a tuple of a
...
...
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