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

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

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

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