Add function to process location data manually
This commit is contained in:
parent
0c7f45c9c0
commit
553590c582
@ -52,6 +52,8 @@ class LocationDataAdmin(admin.ModelAdmin):
|
|||||||
return my_urls + urls
|
return my_urls + urls
|
||||||
|
|
||||||
def process_locationdata(self, request):
|
def process_locationdata(self, request):
|
||||||
|
from .tasks import process_location_data
|
||||||
|
process_location_data()
|
||||||
messages.success(request, 'Items processed.')
|
messages.success(request, 'Items processed.')
|
||||||
return redirect('admin:billard_locationdata_changelist')
|
return redirect('admin:billard_locationdata_changelist')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user