Improve JSON serializer field
parent
f54133064b
commit
9acddf613a
|
@ -14,6 +14,8 @@
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
from django.forms import widgets
|
||||||
|
|
||||||
from rest_framework import serializers
|
from rest_framework import serializers
|
||||||
|
|
||||||
from taiga.domains.base import get_active_domain
|
from taiga.domains.base import get_active_domain
|
||||||
|
@ -35,6 +37,8 @@ class JsonField(serializers.WritableField):
|
||||||
"""
|
"""
|
||||||
Json objects serializer.
|
Json objects serializer.
|
||||||
"""
|
"""
|
||||||
|
widget = widgets.Textarea
|
||||||
|
|
||||||
def to_native(self, obj):
|
def to_native(self, obj):
|
||||||
return obj
|
return obj
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue