fix ident
This commit is contained in:
@ -596,7 +596,7 @@ class Book(ormar.Model):
|
|||||||
database = database
|
database = database
|
||||||
tablename = "book"
|
tablename = "book"
|
||||||
|
|
||||||
__queryset_cls__ = MyQuerySetClass
|
__queryset_cls__ = MyQuerySetClass
|
||||||
|
|
||||||
id: int = ormar.Integer(primary_key=True)
|
id: int = ormar.Integer(primary_key=True)
|
||||||
name: str = ormar.String(max_length=32)
|
name: str = ormar.String(max_length=32)
|
||||||
@ -604,4 +604,4 @@ class Book(ormar.Model):
|
|||||||
# when book not found, raise `404` in your view.
|
# when book not found, raise `404` in your view.
|
||||||
book = await Book.objects.first_or_404(name="123")
|
book = await Book.objects.first_or_404(name="123")
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user