from django.contrib import admin

# Register your models here.
from import_export import resources
from import_export import formats

from recuperateur_reseau_viaire.models import Graph_viaire_ville_information


class Graph_viaire_ville_informationResource(resources.ModelResource):

    class Meta:
        model = Graph_viaire_ville_information
        sgbd_var = [var for var in dir(model) if var.startswith("gvvi_") and var != 'gvvi_nom']
        export_order = ('id', 'gvvi_nom')
        for var in sgbd_var:
            export_order = export_order + (var, )

        #[var for var in dir(dataset) if var.startswith("get")]