Add IndicoModel.has_rows property
commit8ffb0cb3494526b69385ca0281ea5a104882c093
authorAdrian Moennich <adrian.moennich@cern.ch>
Fri, 19 Jun 2015 08:10:54 +0000 (19 10:10 +0200)
committerAdrian Moennich <adrian.moennich@cern.ch>
Fri, 19 Jun 2015 08:10:54 +0000 (19 10:10 +0200)
tree5098c0a9a24f6867839339fbd813bde4a826d243
parent206c69f39eb952227b338781e1e4b94cff35dbd1
Add IndicoModel.has_rows property

Checks if the table has any rows in an efficient way
indico/core/db/sqlalchemy/util/models.py
indico/util/decorators.py