OK, After searching the sqlite db and the views .... problem solved. DB inegrity was ok ... the view was wrong
Op zondag 16 juni 2019 17:53:33 UTC+2 schreef Steve: > > Hi All, > > Busy with my platform, just added some tables. > I have defined extra fields for the Auth table. > > In 1 of the aded fields i use a different table to get some info. > 2 days ago i added 3 row's which are available for me to select. When i > add a new user i am able te select one of those rows and add the user ...NO > PROBLEM > > Today i added 1 extre row to the referenced field, and suddenly i get an > FOREIGN KEY error, and only when i select the newly added row. If i select > one of the other rows ... NO PROBLEM > > Anyone any idea why this can happen . > > > > db.define_table('caretype', > Field('caretype', requires=IS_NOT_EMPTY(), > label=T('Caretype')), > Field('description', requires=IS_NOT_EMPTY(), > label=T('Description')), > auth.signature,format='%(description)s', migrate=False) > > added auth rows > > auth.settings.extra_fields['auth_user']= [ > Field('work_position',db.caretype, label=T('Profession')), > Field('picture', 'upload', > default='static/images/user_icon.png'),] > > Steve > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/195ef526-dad9-40fc-b627-77d3d4ff4000%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.