-
Notifications
You must be signed in to change notification settings - Fork 30
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
KeyError with attribute type dict #41
Comments
Hi @Thetacz , I added it to the example class RegionModel(DiffSyncModel):
"""Shared data model representing a Region in either of the local or remote Nautobot instances."""
...
_attributes = ("slug", "description", "parent_name", "cfs")
cfs: Dict[str, str] = {"asw_owner": ""} and I can confirm that I got the error when accessing the |
I also stumbled upon this bug. The issue seems to be with the below line in
Which in turn is caused by the below line in
https://github.com/django/django/blob/main/django/utils/html.py#L103 I was able to make it working, when testing locally against
|
Yes @progala , this replace idea works. Will raise the PR |
Fixed in #42 |
Environment
Expected Behavior
Being able to open job history detail in SSoT
Observed Behavior
Steps to Reproduce
dict
toDiffSyncModel
class_attributes
with some default value (no need to fill data later, dict must contain at least 1 key)cfs: typing.Dict[str, str] = {"asw_owner": ""}
The text was updated successfully, but these errors were encountered: