We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00cda86 commit 7bc384fCopy full SHA for 7bc384f
Backend/apps/simulations/serializers.py
@@ -92,11 +92,13 @@ class SimulationSessionsCreateSerializer(serializers.ModelSerializer):
92
class Meta:
93
model = SimulationSessions
94
fields = [
95
+ 'public_id',
96
'session_name',
97
'description',
98
'automata_type',
99
'automata_data'
100
]
101
+ read_only_fields = ['public_id']
102
103
# Validate automata_data structure
104
def validate_automata_data(self, value):
0 commit comments