Skip to content

Commit

Permalink
simplify conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
furlongm committed Sep 3, 2024
1 parent 36e5bad commit 64ffc60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/templatetags/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def no_yes_img(boolean, alt_yes='Not Required', alt_no='Required'):

@register.simple_tag
def gen_table(object_list, template_name=None):
if object_list == '':
if not object_list:
return ''
if not template_name:
app_label = object_list.model._meta.app_label
Expand Down

0 comments on commit 64ffc60

Please sign in to comment.