Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with simple tree structure #32

Open
creyD opened this issue Jul 7, 2020 · 9 comments
Open

Bug with simple tree structure #32

creyD opened this issue Jul 7, 2020 · 9 comments

Comments

@creyD
Copy link

creyD commented Jul 7, 2020

I implemented basically the exact recursive model and RecursiveModelSerializer and Django throws maximum recursion depth exceeded while calling a Python object which is interesting, because we only have one parent relation in the database with only 3 objects.

class UnitSerializer(serializers.ModelSerializer):
    parent = RecursiveField(allow_null=False)
    address = AddressSerializer(read_only=True)
    type = serializers.StringRelatedField(read_only=True)
    properties = PropertySerializer(many=True, read_only=True)

    class Meta:
        fields = ('id', 'name', 'description', 'enabled', 'parent', 'type', 'address', 'properties')
        model = Unit
        depth = 3

is our serializer class and it doesn't work. I am using the latest Django 3.0.7 and DRF 3.11.0.

@heywbj
Copy link
Owner

heywbj commented Jul 12, 2020

It means your tree structure contains a cycle.

@creyD
Copy link
Author

creyD commented Jul 12, 2020

But it doesn't, it's just 3 Objects and one is the parent of another. The third has no relationship.

@heywbj
Copy link
Owner

heywbj commented Jul 12, 2020 via email

@creyD
Copy link
Author

creyD commented Jul 13, 2020

Yeah sure:

Request Method: GET
Request URL: http://127.0.0.1:8000/api/unit

Django Version: 3.0.7
Python Version: 3.7.3
Installed Applications:
['backend',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'rest_framework',
 'drf_yasg',
 'corsheaders']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'corsheaders.middleware.CorsMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']



Traceback (most recent call last):
  File "PROJECTPATH/.env/lib/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "PROJECTPATH/.env/lib/python3.7/site-packages/django/core/handlers/base.py", line 145, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "PROJECTPATH/.env/lib/python3.7/site-packages/django/core/handlers/base.py", line 143, in _get_response
    response = response.render()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/django/template/response.py", line 105, in render
    self.content = self.rendered_content
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/response.py", line 70, in rendered_content
    ret = renderer.render(self.data, accepted_media_type, context)
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/renderers.py", line 724, in render
    context = self.get_context(data, accepted_media_type, renderer_context)
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/renderers.py", line 655, in get_context
    raw_data_post_form = self.get_raw_data_form(data, view, 'POST', request)
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/renderers.py", line 563, in get_raw_data_form
    data = serializer.data.copy()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 562, in data
    ret = super().data
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 264, in data
    self._data = self.get_initial()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 413, in <listcomp>
    if not field.read_only
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 412, in get_initial
    for field in self.fields.values()
  File "PROJECTPATH/.env/lib/python3.7/site-packages/django/utils/functional.py", line 48, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 363, in fields
    for key, value in self.get_fields().items():
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/serializers.py", line 1028, in get_fields
    declared_fields = copy.deepcopy(self._declared_fields)
  File "PROJECTPATH/.env/lib/python3.7/copy.py", line 180, in deepcopy
    y = _reconstruct(x, memo, *rv)
  File "PROJECTPATH/.env/lib/python3.7/copy.py", line 306, in _reconstruct
    value = deepcopy(value, memo)
  File "PROJECTPATH/.env/lib/python3.7/copy.py", line 161, in deepcopy
    y = copier(memo)
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework/fields.py", line 683, in __deepcopy__
    return self.__class__(*args, **kwargs)
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework_recursive/fields.py", line 72, in __init__
    for key in kwargs
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework_recursive/fields.py", line 73, in <genexpr>
    if key in _signature_parameters(Field.__init__)
  File "PROJECTPATH/.env/lib/python3.7/site-packages/rest_framework_recursive/fields.py", line 15, in _signature_parameters
    return inspect.signature(func).parameters.keys()
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/inspect.py", line 3083, in signature
    return Signature.from_callable(obj, follow_wrapped=follow_wrapped)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/inspect.py", line 2833, in from_callable
    follow_wrapper_chains=follow_wrapped)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/inspect.py", line 2284, in _signature_from_callable
    return _signature_from_function(sigcls, obj)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/inspect.py", line 2154, in _signature_from_function
    kind=_POSITIONAL_OR_KEYWORD))
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/inspect.py", line 2469, in __init__
    self._kind = _ParameterKind(kind)
  File "PROJECTPATH/.env/lib/python3.7/enum.py", line 310, in __call__
    return cls.__new__(cls, value)
  File "PROJECTPATH/.env/lib/python3.7/enum.py", line 530, in __new__
    if type(value) is cls:

Exception Type: RecursionError at /api/unit
Exception Value: maximum recursion depth exceeded while calling a Python object

@creyD
Copy link
Author

creyD commented Jul 14, 2020

@heywbj Do you need anything else?

@creyD
Copy link
Author

creyD commented Jul 19, 2020

@heywbj Do you have any take on why this is happening?

@LesPrimus
Copy link

Same problem here...
But with the read_only=True parameter the error is gone...
Like this:

class RecursiveModelSerializer(serializers.ModelSerializer):
    parent = RecursiveField(allow_null=True, read_only=True)

    class Meta:
        model = RecursiveModel
        fields = ('id', 'name', 'parent')

@heywbj
Copy link
Owner

heywbj commented Sep 13, 2020

Looks like the DRF implementation of get_initial leads to a recursive cycle if no initial data is provided. As a quick fix, you might be able to set the .initial_data field to rest_framework.fields.empty in your constructor. I haven't used django in over five years, and I don't have the time to fix this issue, but I encourage you to submit a pull request if you can come up with a durable solution.

 def get_initial(self):
        if hasattr(self, 'initial_data'):
            # initial_data may not be a valid type
            if not isinstance(self.initial_data, Mapping):
                return OrderedDict()

            return OrderedDict([
                (field_name, field.get_value(self.initial_data))
                for field_name, field in self.fields.items()
                if (field.get_value(self.initial_data) is not empty) and
                not field.read_only
            ])

        return OrderedDict([
            (field.field_name, field.get_initial())
            for field in self.fields.values()
            if not field.read_only
        ])

@EO2875
Copy link

EO2875 commented Feb 6, 2021

@LesPrimus 's solution worked for me. I can't think of a safe implementation that would allow recursive write permissions, so I think it'll be okay for now. Might this be related to issue #30 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants