Example #1
0
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)
Example #2
0
    def handle(self, *args, **options):
        cdb = CartoDb.objects.get(pk=1)
        #cdb.runsql('DELETE FROM waarnemingen')
        updateCartodb(cdb, Meetpunt.objects.all())

        
Example #3
0
def update_cdb_meetpunten(modeladmin, request, queryset):
    util.updateSeries(queryset, request.user)
    util.updateCartodb(CartoDb.objects.get(pk=1), queryset)