1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Renamed form_class attribute to model_form for consistency

This commit is contained in:
Jeremy Stretch
2017-09-12 13:54:44 -04:00
parent 8fb37233f4
commit d651deb31c
10 changed files with 56 additions and 56 deletions

View File

@@ -11,7 +11,7 @@ from .models import ImageAttachment
class ImageAttachmentEditView(PermissionRequiredMixin, ObjectEditView):
permission_required = 'extras.change_imageattachment'
model = ImageAttachment
form_class = ImageAttachmentForm
model_form = ImageAttachmentForm
def alter_obj(self, imageattachment, request, args, kwargs):
if not imageattachment.pk: