db0_countries.py 273 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
# -*- coding: utf-8 -*-
""" countries 

"""
db.define_table("countries",
    Field("country", "string", notnull=True, unique=True),
    migrate="countries.table")

db.countries._before_delete.append(INHIBIT_CASCADE_DELETE)
db.countries.country.filter_in = dbui.CLEAN_SPACES