fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix
[redakcja.git]
/
apps
/
cover
/
forms.py
diff --git
a/apps/cover/forms.py
b/apps/cover/forms.py
index
f49f4f5
..
e6ffdff
100755
(executable)
--- a/
apps/cover/forms.py
+++ b/
apps/cover/forms.py
@@
-80,7
+80,7
@@
class FlickrForm(forms.Form):
assert match
license_url = match.group(1)
self.cleaned_data['license_url'] = license_url
assert match
license_url = match.group(1)
self.cleaned_data['license_url'] = license_url
- re_license = re.compile(r'http://creativecommons.org/licenses/([^/]*)/([^/]*)/.*')
+ re_license = re.compile(r'http
s?
://creativecommons.org/licenses/([^/]*)/([^/]*)/.*')
m = re_license.match(license_url)
assert m
self.cleaned_data['license_name'] = 'CC %s %s' % (m.group(1).upper(), m.group(2))
m = re_license.match(license_url)
assert m
self.cleaned_data['license_name'] = 'CC %s %s' % (m.group(1).upper(), m.group(2))