Repository navigation
remove unused / left over custom_field dependency - #3574
Merged
Merged
Conversation
Maffooch
approved these changes
Jan 4, 2021
madchap
approved these changes
Jan 5, 2021
Closed
9alexx3
pushed a commit
to 9alexx3/django-DefectDojo
that referenced
this pull request
Aug 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As per #3097 I looked into the usage of the
django-custom-fieldpackage.It looks like 2 years ago all custom fields for products and endpoints where migrated to a custom
DojoMetamodel in our ownmodels.py. There is a management command that seems to confirm this: https://github.com/DefectDojo/django-DefectDojo/blob/8eb5d6779254f25e5fa605cd94722c59a5299567/dojo/management/commands/migrate_meta.pyDuring the upgrade to python3, a custom fork of
django-custom-fieldwas created to fix some incompatibilities. A good reason to now remove all the left over custom-field things from defect dojo, which is what this PR does.There is a corner case. If someone wants to upgrade from before 1.5.3 to 1.12.0 or newer and they are using custom fields, they will have to upgrade to first to a version in the range 1.5.3 - 1.11.0. Then run the migration_meta command. And then upgrade to 1.12.0 or newer. Hence the
breaking changeslabel.