Introduce ObjectAttribute for displaying read-only instance attributes on forms
This commit is contained in:
@@ -759,7 +759,6 @@ class ImageAttachmentListView(generic.ObjectListView):
|
||||
class ImageAttachmentEditView(generic.ObjectEditView):
|
||||
queryset = ImageAttachment.objects.all()
|
||||
form = forms.ImageAttachmentForm
|
||||
template_name = 'extras/imageattachment_edit.html'
|
||||
|
||||
def alter_object(self, instance, request, args, kwargs):
|
||||
if not instance.pk:
|
||||
|
Reference in New Issue
Block a user