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.
This commit is contained in:
Peter Hamilton 2017-01-04 12:01:39 -05:00
parent bbc4c7060d
commit 36f0583adf

View File

@ -820,7 +820,7 @@ class X509Certificate(Certificate):
primary_key=True)
__mapper_args__ = {
'polymorphic_identity': 'Certificate'
'polymorphic_identity': 'X509Certificate'
}
__table_args__ = {
'sqlite_autoincrement': True