fix uuid column type in alembic autogeneration
This commit is contained in:
@ -42,7 +42,9 @@ class UUIDSample2(ormar.Model):
|
||||
metadata = metadata
|
||||
database = database
|
||||
|
||||
id: uuid.UUID = ormar.UUID(primary_key=True, default=uuid.uuid4, uuid_format='string')
|
||||
id: uuid.UUID = ormar.UUID(
|
||||
primary_key=True, default=uuid.uuid4, uuid_format="string"
|
||||
)
|
||||
test_text: str = ormar.Text()
|
||||
|
||||
|
||||
@ -321,7 +323,7 @@ async def test_model_limit_with_filter():
|
||||
await User.objects.create(name="Tom")
|
||||
|
||||
assert (
|
||||
len(await User.objects.limit(2).filter(name__iexact="Tom").all()) == 2
|
||||
len(await User.objects.limit(2).filter(name__iexact="Tom").all()) == 2
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user