Remove repetition in code
parent
e7525c23ac
commit
0418d1baf9
|
@ -74,13 +74,6 @@ class IssueListSerializer(IssueSerializer):
|
||||||
exclude=("description", "description_html")
|
exclude=("description", "description_html")
|
||||||
|
|
||||||
|
|
||||||
class IssueListSerializer(IssueSerializer):
|
|
||||||
class Meta:
|
|
||||||
model = models.Issue
|
|
||||||
read_only_fields = ('id', 'ref', 'created_date', 'modified_date')
|
|
||||||
exclude=("description", "description_html")
|
|
||||||
|
|
||||||
|
|
||||||
class IssueNeighborsSerializer(NeighborsSerializerMixin, IssueSerializer):
|
class IssueNeighborsSerializer(NeighborsSerializerMixin, IssueSerializer):
|
||||||
def serialize_neighbor(self, neighbor):
|
def serialize_neighbor(self, neighbor):
|
||||||
if neighbor:
|
if neighbor:
|
||||||
|
|
Loading…
Reference in New Issue