Skip to content

Commit 22784f7

Browse files
authored
docs: JsonField model name typo
1 parent 5ee1041 commit 22784f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/fields/json.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Once we have this encoder, we will use it in the field definition in the `models
3232
from django.db import models
3333
from django.utils.translation import gettext_lazy as _
3434

35-
class CustomMoodel(models.Model):
35+
class CustomModel(models.Model):
3636
data = models.JSONField(_("data"), null=True, blank=True, encoder=PrettyJSONEncoder)
3737
```
3838

@@ -45,7 +45,7 @@ from django.contrib import admin
4545
from unfold.admin import ModelAdmin
4646

4747

48-
@admin.register(CustomMoodel)
48+
@admin.register(CustomModel)
4949
class CustomAdminClass(ModelAdmin):
5050
readonly_fields = ["data"]
5151
```

0 commit comments

Comments
 (0)