/usr/lib/python3/dist-packages/markupfield/widgets.py is in python3-django-markupfield 1.4.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | from django import forms
from django.contrib.admin.widgets import AdminTextareaWidget
class MarkupTextarea(forms.widgets.Textarea):
def render(self, name, value, attrs=None):
if hasattr(value, 'raw'):
value = value.raw
return super(MarkupTextarea, self).render(name, value, attrs)
class AdminMarkupTextareaWidget(MarkupTextarea, AdminTextareaWidget):
pass
|