Skip to content

Commit bc17efb

Browse files
committed
Added Pony ORM support and updated documentation
1 parent de041e3 commit bc17efb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ from pony.orm import Database, PrimaryKey
329329
from fastadmin import PonyORMModelAdmin, register, sync_to_async
330330

331331
db = Database()
332-
db.bind(provider="sqlite", filename=DB_SQLITE, create_db=False)
332+
db.bind(provider="sqlite", filename="db.sqlite", create_db=True)
333333

334334
class User(db.Entity):
335335
id = PrimaryKey(int, auto=True)

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ <h4>Pony ORM</h4>
543543
from fastadmin import PonyORMModelAdmin, register, sync_to_async
544544

545545
db = Database()
546-
db.bind(provider="sqlite", filename=DB_SQLITE, create_db=False)
546+
db.bind(provider="sqlite", filename="db.sqlite", create_db=True)
547547

548548

549549
class User(db.Entity):

0 commit comments

Comments
 (0)