db0_countries.py 461 Bytes
Newer Older
1
# -*- coding: utf-8 -*-
2
""" countries
3 4 5

"""
db.define_table("countries",
6
    Field("country", "string", length=255, notnull=True, unique=True),
7
    Field("synonyms", "text", comment=tp_synonyms),
8 9 10
    migrate="countries.table")

db.countries._before_delete.append(INHIBIT_CASCADE_DELETE)
11 12 13
db.countries._before_delete.append(dbui.INHIBIT_DELETE_UNDEF)
db.countries._before_update.append(dbui.INHIBIT_UPDATE_UNDEF)

14
db.countries.country.filter_in = dbui.CLEAN_SPACES