/usr/share/pyshared/markupfield/widgets.py is in python-django-markupfield 1.2.0-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 15 | from django import forms
from django.contrib.admin.widgets import AdminTextareaWidget
from django.utils import six
class MarkupTextarea(forms.widgets.Textarea):
def render(self, name, value, attrs=None):
if value is not None and not isinstance(value, six.text_type):
value = value.raw
return super(MarkupTextarea, self).render(name, value, attrs)
class AdminMarkupTextareaWidget(MarkupTextarea, AdminTextareaWidget):
pass
|