update to delete templocation after tranfer to location

This commit is contained in:
Mohamed Nouffer
2022-08-20 15:05:52 +05:30
parent 8243e4a3fa
commit 0d0745e765

View File

@ -131,6 +131,7 @@ def tranfer_to_location(modeladmin, request, queryset):
geom=l.geom geom=l.geom
) )
loc.save() loc.save()
l.delete()
tranfer_to_location.short_description = "Transfer all locations in temp table to location table" tranfer_to_location.short_description = "Transfer all locations in temp table to location table"