fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Poprawienie URLi w manager/pull_request.html.
[redakcja.git]
/
apps
/
api
/
utils.py
diff --git
a/apps/api/utils.py
b/apps/api/utils.py
index
f6d9b1b
..
19309ff
100644
(file)
--- a/
apps/api/utils.py
+++ b/
apps/api/utils.py
@@
-35,7
+35,7
@@
def validate_form(formclass, source='GET'):
def decorator(func):
@wraps(func)
def decorator(func):
@wraps(func)
- def decorated(self, request, *
args, **
kwargs):
+ def decorated(self, request, *
args, **
kwargs):
form = formclass(getattr(request, source), request.FILES)
if not form.is_valid():
form = formclass(getattr(request, source), request.FILES)
if not form.is_valid():
@@
-65,8
+65,8
@@
def natural_order(get_key=lambda x: x):
def getter(key):
nkey = get_key(key)
def getter(key):
nkey = get_key(key)
- if not isinstance(key, unicode):
- ukey = key.decode('utf-8')
+ if not isinstance(
n
key, unicode):
+ ukey =
n
key.decode('utf-8')
else:
ukey = nkey
else:
ukey = nkey