from rest_framework import serializers
from formulas.models.formula import Formula

class FormulaSerializer(serializers.ModelSerializer):
    class Meta:
        model = Formula
        fields = "__all__"
        read_only_fields = ('code', 'created_by', 'created_at')