def update_cdb_waarnemers(modeladmin, request, queryset): mps = [] for w in queryset: mps.extend(w.meetpunt_set.all()) util.updateSeries(mps, request.user) util.updateCartodb(CartoDb.objects.get(pk=1), mps)
def handle(self, *args, **options): cdb = CartoDb.objects.get(pk=1) #cdb.runsql('DELETE FROM waarnemingen') updateCartodb(cdb, Meetpunt.objects.all())
def update_cdb_meetpunten(modeladmin, request, queryset): util.updateSeries(queryset, request.user) util.updateCartodb(CartoDb.objects.get(pk=1), queryset)