""" just copy paste this code into your model and replace dbOBJECT to something you prefer or what is used in your code, another thing that should be known is that this code still cannot distinguish what exactly should be in reference title - name when you use generic appadmin so please remove all fiealds you don't need not require """ """ database class object creation """ dbOBJECT = SQLDB("sqlite://dbOBJECT.db") """ Table definition """ dbOBJECT.define_table(" ", SQLField(" ", " ", length= , " ", notnull=True, default=' ' default=None ", dbOBJECT. ) , unique=True ) """ Relations between tables (remove fields you don't need from requires) """ dbOBJECT. . .requires=IS_IN_DB( dbOBJECT, ' .id ',' . ')