-
-
Notifications
You must be signed in to change notification settings - Fork 350
Closed
Description
DB Postgres (>14.1)
Django: 4.2
Silk 5.3.2 - no errors
Silk 5.4.1 - error
The error occurs when I save any record in the admin panel in a model that has a json type field.
DataError at /admin/app/testmodel/2/change/
invalid input syntax for type json
LINE 1: ... UPDATE "app_testmodel" SET "extended_data" = '''{}''', ...
^
DETAIL: Token "'" is invalid.
CONTEXT: JSON data, line 1: '...
//models.py
class TestModel(models.Model):
extended_data = models.JSONField(default=dict, blank=True)
note = models.CharField(max_length=255, blank=True, null=True)
// admin.py
@admin.register(TestModel)
class TestModelAdmin(admin.ModelAdmin):
pass
elohmeier and Totora6
Metadata
Metadata
Assignees
Labels
No labels