File tree 1 file changed +21
-3
lines changed
1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -149,11 +149,23 @@ <h5 class="card-header">{% trans "Validation" %}</h5>
149
149
< table class ="table table-hover attr-table ">
150
150
< tr >
151
151
< th scope ="row "> {% trans "Custom validators" %}</ th >
152
- < td > {{ object.data.CUSTOM_VALIDATORS|placeholder }}</ td >
152
+ {% if object.data.CUSTOM_VALIDATORS %}
153
+ < td class ="font-monospace ">
154
+ < pre > {{ object.data.CUSTOM_VALIDATORS|json }}</ pre >
155
+ </ td >
156
+ {% else %}
157
+ < td > {{ ''|placeholder }}</ td >
158
+ {% endif %}
153
159
</ tr >
154
160
< tr >
155
161
< th scope ="row "> {% trans "Protection rules" %}</ th >
156
- < td > {{ object.data.PROTECTION_RULES|placeholder }}</ td >
162
+ {% if object.data.PROTECTION_RULES %}
163
+ < td >
164
+ < pre > {{ object.data.PROTECTION_RULES|json }}</ pre >
165
+ </ td >
166
+ {% else %}
167
+ < td > {{ ''|placeholder }}</ td >
168
+ {% endif %}
157
169
</ tr >
158
170
</ table >
159
171
</ div >
@@ -165,7 +177,13 @@ <h5 class="card-header">{% trans "User Preferences" %}</h5>
165
177
< table class ="table table-hover attr-table ">
166
178
< tr >
167
179
< th scope ="row "> {% trans "Default user preferences" %}</ th >
168
- < td > {{ object.data.DEFAULT_USER_PREFERENCES|placeholder }}</ td >
180
+ {% if object.data.DEFAULT_USER_PREFERENCES %}
181
+ < td >
182
+ < pre > {{ object.data.DEFAULT_USER_PREFERENCES|json }}</ pre >
183
+ </ td >
184
+ {% else %}
185
+ < td > {{ ''|placeholder }}</ td >
186
+ {% endif %}
169
187
</ tr >
170
188
</ table >
171
189
</ div >
You can’t perform that action at this time.
0 commit comments