db0_countries.py 285 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 10
    migrate="countries.table")

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