Skip to content

Commit

Permalink
Merge pull request #144 from uploadcare/replace-obsolete-widget-conf
Browse files Browse the repository at this point in the history
Replace obsolete widget setting with current one.
  • Loading branch information
dmitry-mukhin committed Nov 20, 2018
2 parents db263a4 + 77eb783 commit 38fa530
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Fixed
+++++

- `FileWidget.render()` now works in Django 2.1.
- Obsolete widget setting `data-upload-base-url` replaced with `data-url-base`

Changed
+++++++
Expand Down
2 changes: 1 addition & 1 deletion pyuploadcare/dj/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self, attrs=None):
default_attrs['data-integration'] = conf.user_agent_extension

if dj_conf.upload_base_url is not None:
default_attrs['data-upload-base-url'] = dj_conf.upload_base_url
default_attrs['data-url-base'] = dj_conf.upload_base_url

if attrs is not None:
default_attrs.update(attrs)
Expand Down

0 comments on commit 38fa530

Please sign in to comment.