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():
def getter(key):
nkey = get_key(key)
- if not isinstance(key, unicode):
- ukey = key.decode('utf-8')
+ if not isinstance(nkey, unicode):
+ ukey = nkey.decode('utf-8')
else:
ukey = nkey