• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

makinacorpus / django-leaflet / 8232975240

11 Mar 2024 12:43PM UTC coverage: 83.401%. Remained the same
8232975240

push

github

Gagaro
Back to dev

412 of 494 relevant lines covered (83.4%)

13.33 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/leaflet/forms/fields.py
1
from django.contrib.gis.forms.fields import GeometryField as BaseGeometryField
16✔
2

3
from .widgets import LeafletWidget
16✔
4

5

6
class GeometryField(BaseGeometryField):
16✔
7
    widget = LeafletWidget
16✔
8
    geom_type = 'GEOMETRY'
16✔
9

10
    def __init__(self, *args, **kwargs):
16✔
11
        super().__init__(*args, **kwargs)
16✔
12
        self.widget.geom_type = self.geom_type
16✔
13

14

15
class GeometryCollectionField(GeometryField):
16✔
16
    geom_type = 'GEOMETRYCOLLECTION'
16✔
17

18

19
class PointField(GeometryField):
16✔
20
    geom_type = 'POINT'
16✔
21

22

23
class MultiPointField(GeometryField):
16✔
24
    geom_type = 'MULTIPOINT'
16✔
25

26

27
class LineStringField(GeometryField):
16✔
28
    geom_type = 'LINESTRING'
16✔
29

30

31
class MultiLineStringField(GeometryField):
16✔
32
    geom_type = 'MULTILINESTRING'
16✔
33

34

35
class PolygonField(GeometryField):
16✔
36
    geom_type = 'POLYGON'
16✔
37

38

39
class MultiPolygonField(GeometryField):
16✔
40
    geom_type = 'MULTIPOLYGON'
16✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc