mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Self is used, so make it a non static function
This commit is contained in:
@@ -331,8 +331,7 @@ class HrBlacklistUser(FormView):
|
||||
context['blacklistuser'] = self.blacklist_user
|
||||
return context
|
||||
|
||||
@staticmethod
|
||||
def blacklist_item(type, value):
|
||||
def blacklist_item(self, type, value):
|
||||
Blacklist(type=self.type, value=self.value, level=self.level, source=self.source, expiry_date=self.expiry, created_by=self.request.user, reason=self.reason).save()
|
||||
|
||||
def form_valid(self, form):
|
||||
|
||||
Reference in New Issue
Block a user