mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Order Pokemon.items() by rarity descending.
This commit is contained in:
parent
6e9bab427a
commit
bf8d94ef08
1 changed files with 1 additions and 0 deletions
|
@ -1992,6 +1992,7 @@ Pokemon.default_form = relationship(PokemonForm,
|
|||
doc=u"A representative form of this pokémon")
|
||||
Pokemon.items = relationship(PokemonItem,
|
||||
backref='pokemon',
|
||||
order_by=PokemonItem.rarity.desc(),
|
||||
doc=u"Info about items this pokémon holds in the wild")
|
||||
Pokemon.stats = relationship(PokemonStat,
|
||||
innerjoin=True,
|
||||
|
|
Loading…
Reference in a new issue