Skip to content

remove unused / left over custom_field dependency - #3574

Merged
madchap merged 1 commit into
DefectDojo:devfrom
valentijnscholten:custom_field_removal
Jan 5, 2021
Merged

madchap merged 1 commit into
DefectDojo:devfrom
valentijnscholten:custom_field_removal

Conversation

@valentijnscholten

Copy link
Copy Markdown
Member

As per #3097 I looked into the usage of the django-custom-field package.

It looks like 2 years ago all custom fields for products and endpoints where migrated to a custom DojoMeta model in our own models.py. There is a management command that seems to confirm this: https://github.com/DefectDojo/django-DefectDojo/blob/8eb5d6779254f25e5fa605cd94722c59a5299567/dojo/management/commands/migrate_meta.py

During the upgrade to python3, a custom fork of django-custom-field was 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 changes label.

@valentijnscholten valentijnscholten changed the title remove unused custom_field dependency remove unused / left over custom_field dependency Jan 3, 2021
@madchap madchap added the settings_changes Needs changes to settings.py based on changes in settings.dist.py included in this PR label Jan 5, 2021
@madchap
madchap merged commit da14d91 into DefectDojo:dev Jan 5, 2021
@madchap madchap mentioned this pull request Jan 19, 2021
9alexx3 pushed a commit to 9alexx3/django-DefectDojo that referenced this pull request Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Breaking Changes maintenance settings_changes Needs changes to settings.py based on changes in settings.dist.py included in this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants