Skip to content

Object replication forms should not inherit from ModelForm #11707

@jeremystretch

Description

@jeremystretch

Proposed Changes

Convert all forms which facilitate the automatic replication of new objects from a pattern (e.g. InterfaceCreateForm) to regular forms which do not inherit from ModelForm.

Justification

Inheriting from ModelForm results in calling clean() on the resulting instance, which may not be desirable. See #11032 for an example where this is problematic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    netboxstatus: backlogAwaiting selection for worktype: housekeepingChanges to the application which do not directly impact the end user

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions