示例#1
0
文件: admin.py 项目: acaciawater/iom
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)
示例#2
0
    def handle(self, *args, **options):
        cdb = CartoDb.objects.get(pk=1)
        #cdb.runsql('DELETE FROM waarnemingen')
        updateCartodb(cdb, Meetpunt.objects.all())

        
示例#3
0
文件: admin.py 项目: acaciawater/iom
def update_cdb_meetpunten(modeladmin, request, queryset):
    util.updateSeries(queryset, request.user)
    util.updateCartodb(CartoDb.objects.get(pk=1), queryset)