-
Notifications
You must be signed in to change notification settings - Fork 253
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
Add device modules #5657
Add device modules #5657
Conversation
|
||
|
||
@extras_features("custom_validators") | ||
class ModuleBayTemplate(BaseModel, ChangeLoggedModel, CustomFieldModel, RelationshipModel): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be a subclass of ModularComponentTemplateModel? We would need to make the name
field optional
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, could subclass and override name
to optional for this specific model, but that might be iffy if there's code assuming that all ComponentTemplateModels
have a name
?
|
||
|
||
@extras_features("custom_validators") | ||
class ModuleBayTemplate(BaseModel, ChangeLoggedModel, CustomFieldModel, RelationshipModel): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, could subclass and override name
to optional for this specific model, but that might be iffy if there's code assuming that all ComponentTemplateModels
have a name
?
Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com>
…es-rest-api-filters
…ding the base class test
Device modules UI
Closes #2101
What's Changed
This is the feature branch for the device modules feature
Screenshots
TODO
name
field toModuleBay
andModuleBayTemplate
and remove uniqueness constraint onposition
field