mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 14:58:26 -04:00
Remove redundant redefinition of __init__
At some point we made the __init__ method on the base class accept `*args` as an argument, so we don’t need to define our own method here.
This commit is contained in:
@@ -607,9 +607,6 @@ class Users(ModelList):
|
|||||||
client_method = user_api_client.get_users_for_service
|
client_method = user_api_client.get_users_for_service
|
||||||
model = User
|
model = User
|
||||||
|
|
||||||
def __init__(self, service_id):
|
|
||||||
self.items = self.client(service_id)
|
|
||||||
|
|
||||||
def get_name_from_id(self, id):
|
def get_name_from_id(self, id):
|
||||||
for user in self:
|
for user in self:
|
||||||
if user.id == id:
|
if user.id == id:
|
||||||
|
|||||||
Reference in New Issue
Block a user