Skip to content

Commit

Permalink
Fix scaffold email header template. Fix created_at being nullable in …
Browse files Browse the repository at this point in the history
…example.
  • Loading branch information
miohtama committed Feb 3, 2016
1 parent f23913a commit 766aeae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/source/narrative/modelling/models.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,14 @@ The following is a common pattern to add created and updated at timestamps to yo
class User:
#: When this account was created
created_at = Column(UTCDateTime, default=now)
created_at = Column(UTCDateTime, default=now, nullable=False)
#: When the account data was updated last time
updated_at = Column(UTCDateTime, onupdate=now)
updated_at = Column(UTCDateTime, onupdate=now, nullable=True)
.. note ::
You can also generate these timestamps on database-side, see ``server_default`` in SQLAlchemy documentation.
You can also generate these timestamps using database functions, see ``server_default`` in SQLAlchemy documentation.
Accessing item
==============
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<td align="right">
<h2>
<a href="{{ 'home'|route_url }}">
<img class="logo" src="{{ 'myapp:static/logo.png'|static_url }}" alt="{{ site_name }}">
<img class="logo" src="{[ '{{ package }}:static/logo.png'|static_url ]}" alt="{[ site_name ]}">
</a>
</h2>
</td>
Expand Down

0 comments on commit 766aeae

Please sign in to comment.