Commits

Yohan Boniface  committed 0ea2ddb

Don't use Marker, Polyline... in base_model

  • Participants
  • Parent commits 5ddcbb3

Comments (0)

Files changed (1)

File leaflet_storage/base_models.py

             filters = {
                 "category": self
             }
-            markers = Marker.objects.filter(**filters)
-            polylines = Polyline.objects.filter(**filters)
-            polygons = Polygon.objects.filter(**filters)
+            markers = get_model("Marker").objects.filter(**filters)
+            polylines = get_model("Polyline").objects.filter(**filters)
+            polygons = get_model("Polygon").objects.filter(**filters)
             self._features = list(markers) + list(polylines) + list(polygons)
         return self._features