-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
status: acceptedThis issue has been accepted by the maintainers team for implementationThis issue has been accepted by the maintainers team for implementationstatus: blockedAnother issue or external requirement is preventing implementationAnother issue or external requirement is preventing implementationtype: enhancement
Description
Environment
- DiffSync version: latest
Proposed Functionality
Allow for models to have a model of their own type as children.
Use Case
When modelling locations for example, a location of type country might have locations of type city as its children. Example (assuming #222 is implemented):
class Location(DiffSyncModel):
_modelname = "location"
_identifiers = ("name", "location_type", "$parent")
_children = {"location": "location_children"}
name: str
location_type: str
location_children: List['Location'] = []
Metadata
Metadata
Assignees
Labels
status: acceptedThis issue has been accepted by the maintainers team for implementationThis issue has been accepted by the maintainers team for implementationstatus: blockedAnother issue or external requirement is preventing implementationAnother issue or external requirement is preventing implementationtype: enhancement