Si vous constatez la perte de tickets, de commentaires ou de projets, veuillez consulter la page

Commit cb90f327 authored by fred.perso's avatar fred.perso

remame "db_territory" field to "coverage" in geodata/territory model

parent d589e0b7
......@@ -14,7 +14,7 @@ class Territory(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=100, verbose_name='Nom', db_index=True)
code = models.CharField(max_length=5, verbose_name='Code', db_index=True)
db_territory = models.BooleanField(default=False)
coverage = models.BooleanField(default=False)
geom = models.MultiPolygonField(
srid=settings.GEODATA_SRID, verbose_name='Emprise géographique', spatial_index=True)
Frédéric CLOITRE,fcloitre,TuxMachine,02.04.2018 22:31,file:///home/fcloitre/.config/libreoffice/4;
\ No newline at end of file
......@@ -128,7 +128,7 @@ class GlobalContribView(TemplateView):
def list_territory(self):
final_data = []
territories = Territory.objects.filter(db_territory=True).values_list('name', flat=True).distinct().order_by(
territories = Territory.objects.filter(coverage=True).values_list('name', flat=True).distinct().order_by(
for territory in territories:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment