Skip to content

Commit fa4d7ab

Browse files
committed
chore: few improvements on example project
1 parent 5a8c381 commit fa4d7ab

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/_example/django/django_demo/app/forest/custom_datasources/typicode.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any, Dict, List, Self
1+
from typing import Any, Dict, List
22

33
from aiohttp import ClientSession
44
from forestadmin.agent_toolkit.utils.context import User
@@ -10,6 +10,7 @@
1010
from forestadmin.datasource_toolkit.interfaces.query.filter.paginated import PaginatedFilter
1111
from forestadmin.datasource_toolkit.interfaces.query.filter.unpaginated import Filter
1212
from forestadmin.datasource_toolkit.interfaces.query.projections import Projection
13+
from typing_extensions import Self
1314

1415

1516
class TypicodeCollection(Collection):

src/_example/django/django_demo/app/management/commands/sqlalchemy_init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def _populate_addresses(session, customers: List[Customer]) -> List[Address]:
7878

7979
for _ in range(0, 1000):
8080
address = Address(
81-
street=fake.street_address(), city=fake.city(), country=fake.country(), zip_code=fake.postcode()
81+
street=fake.street_address(), city=fake.city(), country=fake.country(), zip_code=fr_fake.postcode()
8282
)
8383
known_customer: Set[Customer] = set()
8484
for _ in range(1, random.randint(2, 4)):

0 commit comments

Comments
 (0)