fix ident

This commit is contained in:
Ethon
2022-01-25 17:52:20 +08:00
committed by GitHub
parent 5c233a6256
commit 33b492216d

View File

@ -596,7 +596,7 @@ class Book(ormar.Model):
database = database
tablename = "book"
__queryset_cls__ = MyQuerySetClass
__queryset_cls__ = MyQuerySetClass
id: int = ormar.Integer(primary_key=True)
name: str = ormar.String(max_length=32)
@ -604,4 +604,4 @@ class Book(ormar.Model):
# when book not found, raise `404` in your view.
book = await Book.objects.first_or_404(name="123")
```
```