mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
views: Remove unused code related to refresh packages button
- This change was part of the original pull request !2661 but was missed in its continuation !2677. Tests: - Installing an app works. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
This commit is contained in:
parent
80705b85af
commit
3f19c91007
@ -31,7 +31,7 @@ from plinth.modules.firewall.components import get_port_forwarding_info
|
|||||||
from plinth.package import Packages
|
from plinth.package import Packages
|
||||||
from plinth.translation import get_language_from_request, set_language
|
from plinth.translation import get_language_from_request, set_language
|
||||||
|
|
||||||
from . import forms, frontpage, operation, package, setup
|
from . import forms, frontpage, operation, setup
|
||||||
|
|
||||||
REDIRECT_FIELD_NAME = 'next'
|
REDIRECT_FIELD_NAME = 'next'
|
||||||
|
|
||||||
@ -537,11 +537,6 @@ class SetupView(TemplateView):
|
|||||||
response.status_code = 303
|
response.status_code = 303
|
||||||
return response
|
return response
|
||||||
|
|
||||||
if 'refresh-packages' in request.POST:
|
|
||||||
# Refresh apt package lists
|
|
||||||
package.refresh_package_lists()
|
|
||||||
return self.render_to_response(self.get_context_data())
|
|
||||||
|
|
||||||
return super().dispatch(request, *args, **kwargs)
|
return super().dispatch(request, *args, **kwargs)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user