Skip to content

Commit

Permalink
Add attribute check in check_urlpatterns
Browse files Browse the repository at this point in the history
  • Loading branch information
AimeeMS committed Nov 20, 2018
1 parent bb93fd8 commit 0ceb4d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recurrence/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def check_urlpatterns(urlpatterns):
match = check_urlpatterns(pattern.url_patterns)
if match:
return match
elif (pattern.callback == i18n.javascript_catalog and
elif (hasattr(i18n, 'javascript_catalog') and pattern.callback == i18n.javascript_catalog and
'recurrence' in pattern.default_args.get('packages', [])):
if pattern.name:
return urls.reverse(pattern.name)
Expand Down

0 comments on commit 0ceb4d4

Please sign in to comment.