---
title: "Comment by Emanuele Sarracino on \"Django Service Layers: Beyond Fat Models vs. Enterprise Patterns\" | Hashnode"
description: "Hello, very interesting. I have a question, how could you fit the logic of form and serializers into all this?"
url: "https://hashnode.com/posts/django-service-layers-beyond-fat-models-vs-enterprise-patterns/666ee482f30d8d2d69568d25/comment/678a1c924110416366dc36e8"
---

[Discussion](https://hashnode.com/posts/django-service-layers-beyond-fat-models-vs-enterprise-patterns/666ee482f30d8d2d69568d25)

Comment [Django Service Layers: Beyond Fat Models vs. Enterprise Patterns](https://hashnode.com/posts/django-service-layers-beyond-fat-models-vs-enterprise-patterns/666ee482f30d8d2d69568d25)

[Emanuele Sarracino](https://hashnode.com/@emanueleSarracino)

[Jan 17, 2025](https://hashnode.com/posts/django-service-layers-beyond-fat-models-vs-enterprise-patterns/666ee482f30d8d2d69568d25/comment/678a1c924110416366dc36e8)

Hello, very interesting. I have a question, how could you fit the logic of form and serializers into all this?

[Simon Crowe](https://hashnode.com/@simoncrowe)

[Jan 19, 2025](https://hashnode.com/posts/django-service-layers-beyond-fat-models-vs-enterprise-patterns/666ee482f30d8d2d69568d25/comment/678a1c924110416366dc36e8#reply-678d01e5377e535e27be6c54)

That's a good question. I haven't worked with forms in years but I can say a couple of things about serializers.

In HackSoft's styleguide they recommend using serializers for data validation/presentation only. In their examples, the serializers are nested in the view class and don't interact with the service layer. ([github.com/HackSoftware/Django-Styleguide](https://github.com/HackSoftware/Django-Styleguide?tab=readme-ov-file#plain))

At my company, we ended up calling the service functions from inside the serialisers' `create` and `update` methods ([django-rest-framework.org/api-guide/serializers](https://www.django-rest-framework.org/api-guide/serializers/#saving-instances)). This allowed us to make better use of the `GenericAPIView` classes ([django-rest-framework.org/api-guide/generic-views](https://www.django-rest-framework.org/api-guide/generic-views/#examples)).

[Emanuele Sarracino](https://hashnode.com/@emanueleSarracino)

[Jan 19, 2025](https://hashnode.com/posts/django-service-layers-beyond-fat-models-vs-enterprise-patterns/666ee482f30d8d2d69568d25/comment/678a1c924110416366dc36e8#reply-678d042e793197268459c26c)

[Simon Crowe](https://hashnode.com/@simoncrowe) I understand, thank you.
