mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Display primary keys in table docs.
This commit is contained in:
parent
739c6fdd7c
commit
e07e64dfa5
1 changed files with 4 additions and 0 deletions
|
@ -139,6 +139,10 @@ def generate_table_header(cls, remaining_attrs):
|
||||||
pass
|
pass
|
||||||
yield u''
|
yield u''
|
||||||
|
|
||||||
|
yield u'Primary key: %s.' % u', '.join(
|
||||||
|
u'**%s**' % col.key for col in cls.__table__.primary_key.columns)
|
||||||
|
yield u''
|
||||||
|
|
||||||
def generate_common(cls, remaining_attrs):
|
def generate_common(cls, remaining_attrs):
|
||||||
common_col_headers = []
|
common_col_headers = []
|
||||||
for c in cls.__table__.c:
|
for c in cls.__table__.c:
|
||||||
|
|
Loading…
Reference in a new issue