You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2020/02/10 22:44:57 UTC

[allura] 26/41: [#8349] revert an idiom change that needs to be an exact type() check still

This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch db/8349
in repository https://gitbox.apache.org/repos/asf/allura.git

commit 83a94abcf387be8b5cc0a147cab80d9da0535d27
Author: Dave Brondsema <da...@brondsema.net>
AuthorDate: Mon Feb 10 17:39:35 2020 -0500

    [#8349] revert an idiom change that needs to be an exact type() check still
---
 ForgeTracker/forgetracker/model/ticket.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ForgeTracker/forgetracker/model/ticket.py b/ForgeTracker/forgetracker/model/ticket.py
index 62f85c9..99061c3 100644
--- a/ForgeTracker/forgetracker/model/ticket.py
+++ b/ForgeTracker/forgetracker/model/ticket.py
@@ -1176,7 +1176,7 @@ class Ticket(VersionedArtifact, ActivityObject, VotableArtifact):
     def __json__(self, posts_limit=None, is_export=False):
         parents_json = {}
         for parent in reversed(type(self).mro()):
-            if not isinstance(self, parent) and hasattr(parent, '__json__'):
+            if parent != type(self) and hasattr(parent, '__json__'):
                 kwargs = {}
                 if parent == VersionedArtifact:
                     kwargs['posts_limit'] = posts_limit