Show More
@@ -133,11 +133,10 b' class DisplayFormatter(Configurable):' | |||
|
133 | 133 | format_dict = {} |
|
134 | 134 | |
|
135 | 135 | for format_type, formatter in self.formatters.items(): |
|
136 | if format_type not in include: | |
|
136 | if include and format_type not in include: | |
|
137 | continue | |
|
138 | if exclude and format_type in exclude: | |
|
137 | 139 | continue |
|
138 | if exclude is not None: | |
|
139 | if format_type in exclude: | |
|
140 | continue | |
|
141 | 140 | try: |
|
142 | 141 | data = formatter(obj) |
|
143 | 142 | except: |
General Comments 0
You need to be logged in to leave comments.
Login now