refactor: Update project settings, URL configurations, client views, and remove requirements.txt.

This commit is contained in:
2026-02-23 18:44:06 -03:00
parent 2160998c23
commit 7ddaa2d1f9
129 changed files with 888 additions and 40 deletions

View File

@@ -0,0 +1,15 @@
from rest_framework import serializers
from .models import Payments
class PaymentsSerializer(serializers.ModelSerializer):
type_pay_name = serializers.ReadOnlyField(source='type_pay.name')
comanda_name = serializers.ReadOnlyField(source='comanda.name')
client_name = serializers.ReadOnlyField(source='client.name')
class Meta:
model = Payments
fields = [
'id', 'value', 'type_pay', 'type_pay_name',
'comanda', 'comanda_name', 'client', 'client_name',
'description', 'datetime'
]