mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-19 09:53:34 -06:00
PEP8 clenaup
This commit is contained in:
parent
15938ff98f
commit
741f93999b
@ -1526,7 +1526,6 @@ def module_add(request, pk):
|
||||
})
|
||||
|
||||
|
||||
|
||||
@permission_required('dcim.change_module')
|
||||
def module_edit(request, pk):
|
||||
|
||||
|
@ -117,11 +117,11 @@ class UserActionManager(models.Manager):
|
||||
# Actions affecting a single object
|
||||
def log_action(self, user, obj, action, message):
|
||||
self.model.objects.create(
|
||||
content_type = ContentType.objects.get_for_model(obj),
|
||||
object_id = obj.pk,
|
||||
user = user,
|
||||
action = action,
|
||||
message = message,
|
||||
content_type=ContentType.objects.get_for_model(obj),
|
||||
object_id=obj.pk,
|
||||
user=user,
|
||||
action=action,
|
||||
message=message,
|
||||
)
|
||||
|
||||
def log_create(self, user, obj, message=''):
|
||||
|
@ -1,2 +1 @@
|
||||
default_app_config = 'ipam.apps.IPAMConfig'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user