mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-04 16:11:11 -04:00
Refactor to assign directly
There’s no need for an intermediate variable here, and it’s confusing having two properties containing the same data.
This commit is contained in:
@@ -119,9 +119,7 @@ class BroadcastAreaLibraries(SerialisedModelCollection, GetItemByIdMixin):
|
||||
model = BroadcastAreaLibrary
|
||||
|
||||
def __init__(self):
|
||||
|
||||
self.libraries = BroadcastAreasRepository().get_libraries()
|
||||
self.items = self.libraries
|
||||
self.items = BroadcastAreasRepository().get_libraries()
|
||||
|
||||
def get_areas(self, *area_ids):
|
||||
# allow people to call `get_areas('a', 'b') or get_areas(['a', 'b'])`
|
||||
|
||||
Reference in New Issue
Block a user