Skip to content

Commit

Permalink
Bump to django 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
hipek8 committed May 17, 2024
1 parent 7a11b0e commit a2d6337
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
-r openstack.txt
-r hermes.txt
Django==1.10.8
Django==1.11.8
dj.choices==0.11.0
django-extensions==1.7.5
django-filter==0.13.0
django-filter==1.0.4
django-import-export==1.2.0
django-money==0.12
py-moneyed==1.2
django-mptt==0.8.7
django-reversion==2.0
django-rq==2.0
django-sitetree==1.7.0
django-sitetree==1.13.0
django-taggit==0.22.2
django-taggit-serializer==0.1.7
django-threadlocals==0.8
Expand Down
2 changes: 0 additions & 2 deletions src/ralph/admin/static/auto-complete-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ function dismissChangeRelatedObjectPopup(win, objId, newRepr, newId) {
function dismissAddRelatedObjectPopup(win, newId, newRepr) {
// newId and newRepr are expected to have previously been escaped by
// django.utils.html.escape.
newId = html_unescape(newId);
newRepr = html_unescape(newRepr);
var name = windowname_to_id(win.name);
var elem = document.getElementById(name);
var o;
Expand Down
6 changes: 3 additions & 3 deletions src/ralph/admin/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def value_from_datadict(self, data, files, name):
def render(self, name, value, attrs=None, choices=()):
attr_value = ','.join(map(str, value or []))
final_attrs = self.build_attrs(
attrs, type='hidden', name=name, value=attr_value,
attrs, extra_attrs={name: attr_value} # "type": 'hidden', "name": name, "value": attr_value}
)
return mark_safe(
'<a class="expand action-expand">Expand all</a>'
Expand All @@ -97,7 +97,7 @@ def render_option(self, selected_choices, option_value, option_label):
attrs = {'id': input_id, 'type': 'checkbox', 'value': option_value}
if option_value in selected_choices:
attrs['checked'] = 'checked'
attrs = self.build_attrs(**attrs)
attrs = self.build_attrs({**attrs})
return '<input{}><label{}>{}</label>'.format(
flatatt(attrs), flatatt({'for': input_id}), option_label
)
Expand Down Expand Up @@ -310,4 +310,4 @@ def render(self, name, value, attrs=None):
if not is_polymorphic and self.can_add:
context['add_related_url'] = self.get_related_url(info, 'add')
template = loader.get_template('admin/widgets/autocomplete.html')
return template.render(context)
return template.render(context.flatten())

0 comments on commit a2d6337

Please sign in to comment.