Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcounsell committed Dec 28, 2021
1 parent 6da49f3 commit 936b92e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ pip install popoto
``` python
import popoto

class Person (popoto.Model)
class Person (popoto.Model):
name = popoto.KeyField()
fav_color = popoto.Field()

Person.create(name="Lalisa Manobal", fav_color = "yellow")
lisa = Person.query.get("Lalisa Manobal")
lisa = Person.query.get(name="Lalisa Manobal")

print(f"{lisa.name} likes {lisa.fav_color}.")
> 'Lalisa Manobal likes yellow.'
Expand Down

0 comments on commit 936b92e

Please sign in to comment.