12 lines
356 B
Python
12 lines
356 B
Python
|
from core.views.backend.generic import BackendRedirectView
|
||
|
|
||
|
from .helpers import update_currencies
|
||
|
|
||
|
from django.urls import reverse_lazy
|
||
|
|
||
|
class RateUpdaterView(BackendRedirectView):
|
||
|
next = reverse_lazy("currencies")
|
||
|
|
||
|
def dispatch(self, request, *args, **kwargs):
|
||
|
update_currencies()
|
||
|
return super().dispatch(request, *args, **kwargs)
|