[image: Capture.PNG]

permission_id and contract_id have a relationship in the database

How can i using remove a entry for example.. if permission_id = 2 and 
contract_id = 2 exists in the same entry as shown on line one in database, 
i want to be able to remove it from my database. (This entry is unique so 
can only appear once)

I have tried PermissionEntity.query.get(contract_id) and 
PermissionEntity.query.get(permission_id) but doesnt seem to be working as 
Its not stored in a permission entity.. My relationship does not have an 
entity. the table i have provided a picture for has a relationship with 
permissions table and contracts table..

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sqlalchemy/8bffee78-5174-444c-aacb-91ba2a0832d1%40googlegroups.com.

Reply via email to