Skip to content

Commit

Permalink
admin: print error
Browse files Browse the repository at this point in the history
  • Loading branch information
moogoo78 committed May 5, 2024
1 parent ca8d130 commit 86a46d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ def get_assertion(self, type_name='', part=''):

def get_named_area(self, area_class_name=''):
if area_class_name:
for na in self.named_areas:
if na.area_class.name == area_class_name:
return na
for m in self.named_area_maps:
if m.named_area.area_class.name == area_class_name:
return m.named_area
return ''

@property
Expand Down

0 comments on commit 86a46d9

Please sign in to comment.