Skip to content

Commit

Permalink
Fixes #79 - Circuit Terminations REPR
Browse files Browse the repository at this point in the history
Circuit Termination records don't have a name attribute, so we'll use the underlying circuit ID to represent them.
  • Loading branch information
zmoody committed Aug 3, 2018
1 parent 720f6b1 commit 5b11b19
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pynetbox/circuits.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@ class Circuits(Record):

def __str__(self):
return self.cid


class CircuitTerminations(Record):

def __str__(self):
return self.circuit.cid

0 comments on commit 5b11b19

Please sign in to comment.