Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
adress review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
monodo committed May 28, 2024
1 parent 5d8de80 commit d5fca1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geocity/apps/accounts/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@ def sortable_str(self, obj):

@admin.display(boolean=True)
def has_background_image(self, obj):
return False if obj.background_image.name == "" else True
return True if obj.background_image.name else False

if has_background_image:
has_background_image.admin_order_field = "background_image"
Expand Down

0 comments on commit d5fca1a

Please sign in to comment.