File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
cesnet_service_path_plugin
templates/cesnet_service_path_plugin Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 66from strawberry_django import FilterLookup
77from django .db .models import Q
88
9+ import logging
10+
911from netbox .graphql .filter_mixins import NetBoxModelFilterMixin
1012
1113if TYPE_CHECKING :
@@ -76,7 +78,7 @@ class SegmentFilter(NetBoxModelFilterMixin):
7678 @strawberry_django .filter_field
7779 def has_path_data (self , value : bool , prefix : str ) -> Q :
7880 """Filter segments based on whether they have path geometry data"""
79-
81+ logging . debug ( f"Filtering segments with has_path_data= { value } " )
8082 if value :
8183 # Filter for segments WITH path data
8284 return Q (** {f"{ prefix } path_geometry__isnull" : False })
Original file line number Diff line number Diff line change 22{% load i18n %}
33{% load static %}
44{% block title %}
5- TEST
65 < link rel ="stylesheet "
76 href ="{% static 'cesnet_service_path_plugin/css/segment_form.css' %} ">
87 < script src ="{% static 'cesnet_service_path_plugin/js/segment_form.js' %} "> </ script >
Original file line number Diff line number Diff line change @@ -159,9 +159,6 @@ def segment_map_view(request, pk):
159159 # if hasattr(segment, "status") and hasattr(segment, "get_status_display"):
160160 # segment_style["color"] = status_colors.get(segment.get_status_display(), "#dc3545")
161161
162- print ("has path data:" , segment .has_path_data ())
163- print ("has fallback line:" , has_fallback_line )
164-
165162 context = {
166163 "object" : segment ,
167164 "segment" : segment ,
You can’t perform that action at this time.
0 commit comments