Skip to content

Commit

Permalink
Fix whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
stsewd committed May 25, 2018
1 parent 434016a commit f56ef2c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions readthedocs/cdn/purge.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def chunks(in_list, chunk_size):
for i in range(0, len(in_list), chunk_size):
yield in_list[i:i + chunk_size]


if CDN_USERNAME and CDN_KEY and CDN_SECRET and CDN_SERVICE == 'maxcdn':
from maxcdn import MaxCDN
api = MaxCDN(CDN_USERNAME, CDN_KEY, CDN_SECRET)
Expand Down
1 change: 1 addition & 0 deletions readthedocs/core/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def __call__(self, value):
raise exc
super(DomainNameValidator, self).__call__(idnavalue)


validate_domain_name = DomainNameValidator()


Expand Down
1 change: 1 addition & 0 deletions readthedocs/redirects/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ class RedirectAdmin(admin.ModelAdmin):
list_display = ['project', 'redirect_type', 'from_url', 'to_url']
raw_id_fields = ('project',)


admin.site.register(Redirect, RedirectAdmin)

0 comments on commit f56ef2c

Please sign in to comment.