File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -128,11 +128,11 @@ def nullify_connected_endpoints(instance, **kwargs):
128128
129129
130130@receiver (post_save , sender = FrontPort )
131- def extend_rearport_cable_paths (instance , created , ** kwargs ):
131+ def extend_rearport_cable_paths (instance , created , raw , ** kwargs ):
132132 """
133133 When a new FrontPort is created, add it to any CablePaths which end at its corresponding RearPort.
134134 """
135- if created :
135+ if created and not raw :
136136 rearport = instance .rear_port
137137 for cablepath in CablePath .objects .filter (_nodes__contains = rearport ):
138138 cablepath .retrace ()
Original file line number Diff line number Diff line change 11from django .contrib .postgres .fields import ArrayField
2- from django .core .serializers .json import Serializer as Serializer_
2+ from django .core .serializers .json import Deserializer , Serializer as Serializer_ # noqa
33from django .utils .encoding import is_protected_type
44
5+ # NOTE: Module must contain both Serializer and Deserializer
6+
57
68class Serializer (Serializer_ ):
79 """
You can’t perform that action at this time.
0 commit comments