2
.github/ISSUE_TEMPLATE/new_model.md
vendored
2
.github/ISSUE_TEMPLATE/new_model.md
vendored
@ -33,6 +33,8 @@ Describe in detail the following:
|
|||||||
|
|
||||||
- [ ] 🛠️ Migrations added
|
- [ ] 🛠️ Migrations added
|
||||||
|
|
||||||
|
- [ ] ♻️ Serializer Created
|
||||||
|
|
||||||
- [ ] 🔄 [ViewSet Created](https://nofusscomputing.com/projects/centurion_erp/development/views/)
|
- [ ] 🔄 [ViewSet Created](https://nofusscomputing.com/projects/centurion_erp/development/views/)
|
||||||
|
|
||||||
- [ ] 🔗 URL Route Added
|
- [ ] 🔗 URL Route Added
|
||||||
|
31
app/core/serializers/ticket_comment_action.py
Normal file
31
app/core/serializers/ticket_comment_action.py
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
from drf_spectacular.utils import extend_schema_serializer
|
||||||
|
|
||||||
|
from core.models.ticket_comment_action import TicketCommentAction
|
||||||
|
from core.serializers.ticket_comment import (
|
||||||
|
BaseSerializer,
|
||||||
|
ModelSerializer as TicketCommentBaseModelSerializer,
|
||||||
|
ViewSerializer as TicketCommentBaseViewSerializer
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@extend_schema_serializer(component_name = 'TicketCommentActionModelSerializer')
|
||||||
|
class ModelSerializer(
|
||||||
|
TicketCommentBaseModelSerializer,
|
||||||
|
BaseSerializer,
|
||||||
|
):
|
||||||
|
|
||||||
|
|
||||||
|
class Meta(TicketCommentBaseModelSerializer.Meta):
|
||||||
|
|
||||||
|
model = TicketCommentAction
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@extend_schema_serializer(component_name = 'TicketCommentActionViewSerializer')
|
||||||
|
class ViewSerializer(
|
||||||
|
TicketCommentBaseViewSerializer,
|
||||||
|
ModelSerializer,
|
||||||
|
):
|
||||||
|
|
||||||
|
pass
|
Reference in New Issue
Block a user