Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/admin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ classes reflected in the database and add a ``__unicode__`` member function.

Imagine we have a simple blog application consisting of Blog, Post, and User
models. As expected, each post belongs to a specific user and the model has the
requisite foreign key to the User table. When we view a Post's assoicated user
requisite foreign key to the User table. When we view a Post's associated user
in the admin site, however, we see the following::

<flask_sqlalchemy.user object at 0x10d3cea10>
Expand Down Expand Up @@ -59,5 +59,5 @@ classes. Deriving from ``sandman2.AutomapModel`` accomplishes this::

Notice that you can refer to attributes of the class that you know to be present
(like ``user.name``) without defining the ``name`` column; all other
columns/properties are reflected. You're meerly *extending* the existing model
columns/properties are reflected. You're merely *extending* the existing model
class.
2 changes: 1 addition & 1 deletion tests/test_user_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def test_validate_post_existing_resource(client):

def test_validate_put_existing(client):
"""Do we get back an error message when making a PUT request for
an exisitng resource?"""
an existing resource?"""
response = client.put(
'/user/1',
data=json.dumps({
Expand Down