Project

General

Profile

0002-api-set-max-lenght-on-roles-parameters-for-add-agend.patch

Nicolas Roche (absent jusqu'au 19 août), 08 October 2021 10:43 AM

Download (1.14 KB)

View differences:

Subject: [PATCH 2/5] api: set max lenght on roles parameters for add agenda
 endpoint (#57670)

 chrono/api/serializers.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
chrono/api/serializers.py
156 156
            'label',
157 157
            'description',
158 158
            'pricing',
159 159
            'url',
160 160
        ]
161 161

  
162 162

  
163 163
class AgendaSerializer(serializers.ModelSerializer):
164
    edit_role = serializers.CharField(required=False)
165
    view_role = serializers.CharField(required=False)
164
    edit_role = serializers.CharField(required=False, max_length=150)
165
    view_role = serializers.CharField(required=False, max_length=150)
166 166

  
167 167
    class Meta:
168 168
        model = Agenda
169 169
        fields = [
170 170
            'slug',
171 171
            'label',
172 172
            'kind',
173 173
            'minimal_booking_delay',
174
-