1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #11826: RSS feed widget (#11976)

* Add feedparser as a dependency

* Introduce RSSFeedWidget

* Clean up widget templates
This commit is contained in:
Jeremy Stretch
2023-03-14 11:59:27 -04:00
committed by GitHub
parent af63ac693e
commit 8bd0a2ef9d
7 changed files with 85 additions and 3 deletions

View File

@ -686,7 +686,7 @@ class DashboardWidgetAddView(LoginRequiredMixin, View):
widget_form = DashboardWidgetAddForm(initial=initial)
widget_name = get_field_value(widget_form, 'widget_class')
widget_class = get_widget_class(widget_name)
config_form = widget_class.ConfigForm(prefix='config')
config_form = widget_class.ConfigForm(initial=widget_class.default_config, prefix='config')
return render(request, self.template_name, {
'widget_class': widget_class,