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

Fix write once fields #5975

Merged
merged 2 commits into from
Apr 6, 2023
Merged

Fix write once fields #5975

merged 2 commits into from
Apr 6, 2023

Conversation

zhiltsov-max
Copy link
Contributor

Motivation and context

This PR fixes a problem with WriteOnceSerializer that it affected only the fields declared in the Meta.fields, while the manually declared fields were left unaffected. This PR also fixes several issues with invalid field declarations.

How has this been tested?

Checklist

  • I submit my changes into the develop branch
  • I have added a description of my changes into the CHANGELOG file
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • I have linked related issues (see GitHub docs)
  • I have increased versions of npm packages if it is necessary
    (cvat-canvas,
    cvat-core,
    cvat-data and
    cvat-ui)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

@zhiltsov-max zhiltsov-max force-pushed the zm/fix-write-once-mixin branch from 8eac590 to bd51e56 Compare April 4, 2023 19:33
cvat/apps/engine/serializers.py Outdated Show resolved Hide resolved
cvat/apps/engine/serializers.py Outdated Show resolved Hide resolved
cvat/schema.yml Show resolved Hide resolved
cvat/apps/engine/serializers.py Show resolved Hide resolved
@SpecLad SpecLad merged commit c04bd1d into develop Apr 6, 2023
@SpecLad SpecLad deleted the zm/fix-write-once-mixin branch April 6, 2023 16:39
mikhail-treskin pushed a commit to retailnext/cvat that referenced this pull request Jul 1, 2023
This PR fixes a problem with WriteOnceSerializer that it affected only
the fields declared in the `Meta.fields`, while the manually declared
fields were left unaffected. This PR also fixes several issues with
invalid field declarations.
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

Successfully merging this pull request may close these issues.

2 participants