Commit Graph

12 Commits

Author SHA1 Message Date
manchandavishal cc41dedbc5 Address RemovedInDjango40Warning
In Django 3.1, django.conf.urls.url() is deprecated
in favor of django.urls.re_path(). For more info see [1]
These were already replaced in Horizon repo by [2].

[1] https://docs.djangoproject.com/en/4.0/releases/3.1/#id2
[2] https://review.opendev.org/c/openstack/horizon/+/827093

Change-Id: I66118c1af551e69a2deabf87b37efa574233e93b
2022-04-29 16:44:48 +05:30
Qian Min Chen e28dfcf7d3 Remove the redundant attributes
DeleteInstance action inherits from tables.DeleteAction,
the parent class has the 'name', 'classes' and 'icon' attributes,
So remove the unused attributes.

Change-Id: I5ef01ce68edcd7e78ac95747cf5fd8d8f8c96c81
2018-07-19 17:48:08 +08:00
Akihiro Motoki 6bf20357fe Django 2.0 support
Replace django.core.urlresolves with django.urls

(In Django 2.0) The django.core.urlresolvers module is removed
in favor of its new location, django.urls.
It was deprecated in Django 1.10:
https://docs.djangoproject.com/en/2.0/releases/1.10/#id3

Note that this commit does not add py35dj20 like other horizon plugins
because there is no actual python unit tests in freezer-web-ui.

Older Django unit tests were dropped from tox.ini
as horizon dropped Django <=1.10 support in Rocky.

Change-Id: I38f3f05655324f2a5f38c6e8c6ab53ebaa42d4c8
2018-05-14 02:34:28 +09:00
Jenkins 460c91aea4 Merge "Add attributes "data-display" to clients table row" 2017-09-20 15:55:58 +00:00
yapeng d6ae33196b Replace patterns syntax by url
The old syntax using patterns is deprecated in Django 1.8, and is
removed in Django 1.10. The current version Django<1.11, this
patch fix the syntax.

Change-Id: I26564c97538c23378c0494739257b31dd8796f5a
Closes-Bug: #1709742
2017-08-10 03:03:19 +00:00
zhangdebo1987 5296db8b0c Add attributes "data-display" to clients table row
In clients table, row attribute "data-display" is missing, so
when we cann't see client name in deleting confirm dialog.
Now I fix it.

Change-Id: Ie0b6b7dcf419b1c4ab4b83715410b7bb678f39fe
Closes-bug: #1703501
2017-07-17 15:39:39 +08:00
Cao Xuan Hoang 42eb07b3f4 Remove logging import unused
This patch removes logging import unused in disaster_recovery

Change-Id: I453254206e4c91f005018cad9eff512a85a40df0
2016-11-15 16:29:24 +07:00
Memo Garcia d246ec11e7 Fixed Catch errors in horizon tables
When an action is performed from a table, errors are not being catched

Closes-bug: 1593355
Change-Id: I5bdb19dcc1079f2fceeb88e49c644048c60254ce
2016-06-16 18:50:44 +01:00
Jenkins d49e655ffe Merge "Fix misleading labeling for filters" 2016-03-24 14:55:02 +00:00
Jin Nan Zhang 9cc4126d52 Fixed importError urlresolvers
ImportError: No module named urlresolvers in horizon.utils.
Fixed this importError use django.core.urlresolvers.

Change-Id: Ia2591675e3ac75b1cf608e7c18ad0c749d530289
Closes-Bug: #1549077
2016-03-01 14:02:05 -05:00
Memo García 37f3b7caef Fix misleading labeling for filters
Resolved bug: 1544083

Change-Id: I0b2383159b1616d80a5d7641618a65a73dc73654
2016-02-10 14:43:14 +00:00
memo b08558eba4 Improved horizon dashboard for freezer
action, job, session, backup, clients are now objects in api.py
shield decorator to avoid having boilerplate code in views
move from freezer_ui to disaster_recovery url
improved actions edition in a job
javascript lint
added clients panel
added actions panel
improved restore functionality from the dashboard

Change-Id: I23aed516bcde3a40b24144b05f858d1e3a49a796
2015-11-12 16:21:27 +00:00