Skip to content

Commit 36f0583

Browse files
committed
Fixes a mismapped polymorphic identity for X509Certificate objects
This change updates the polymorphic identity used by X509Certificate objects. The original identity was already used by the base Certificate object, causing sqlalchemy to raise a warning when used. This change resolves the identity reassignment and prevents the warning from being displayed.
1 parent bbc4c70 commit 36f0583

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kmip/pie/objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ class X509Certificate(Certificate):
820820
primary_key=True)
821821

822822
__mapper_args__ = {
823-
'polymorphic_identity': 'Certificate'
823+
'polymorphic_identity': 'X509Certificate'
824824
}
825825
__table_args__ = {
826826
'sqlite_autoincrement': True

0 commit comments

Comments
 (0)