Skip to content

Commit ed1e502

Browse files
committed
mention Piccolo apps, and update example code to use get
1 parent f1244ec commit ed1e502

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Some of it’s stand out features are:
1919
- Tab completion support - works great with iPython and VSCode.
2020
- Batteries included - a User model, authentication, migrations, an [admin GUI](https://github.com/piccolo-orm/piccolo_admin), and more.
2121
- Modern Python - fully type annotated.
22+
- Make your codebase modular and scalable with Piccolo apps (similar to Django apps).
2223

2324
## Syntax
2425

@@ -59,7 +60,7 @@ b = Band(name='C-Sharps', popularity=100)
5960
await b.save().run()
6061

6162
# To fetch an object from the database, and update it:
62-
b = await Band.objects().where(Band.name == 'Pythonistas').first().run()
63+
b = await Band.objects().get(Band.name == 'Pythonistas').run()
6364
b.popularity = 10000
6465
await b.save().run()
6566

0 commit comments

Comments
 (0)