• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dwaynebailey / pootle / 2088
93%
master: 95%

Build:
Build:
LAST BUILD BRANCH: cleanup/argparse_update_tmserver
DEFAULT BRANCH: master
Ran 08 Nov 2016 11:47AM UTC
Jobs 4
Files 566
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2088

push

travis-ci

dwaynebailey
MarkupField: implement `to_python`

This fixes an ugly bug when creating and updating static pages' content.

It turns out that Django 1.9 silently introduced a backwards-incompatible change
which implemented `TextField`'s `to_python` method, and forcing coercion to text
there.

Since `MarkupField` subclasses `TextField` but didn't implement `to_python`
(rather `get_prep_value`), `TextField`'s `to_python` was being called when
cleaning the form data, hence coercing the `MarkupField` instance to a string
via its `__unicode__` method, which in turn returns the HTML-rendered version of
the raw text.

Since we want to get the raw text, we need to ensure `to_python` does the same
as before, i.e. use `get_prep_value`'s code.

Refs. https://code.djangoproject.com/ticket/24677

26635 of 28748 relevant lines covered (92.65%)

3.04 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2088.1 (TOXENV=py27-django19-sqlite PYTHONPATH=$HOME/virtualenv/python2.7.9/lib/python2.7/site-packages TOX_TESTENV_PASSENV="PYTHONPATH") 08 Nov 2016 11:49AM UTC 0
92.52
Travis Job 2088.1
2 2088.2 (TOXENV=py27-django19-mysql PYTHONPATH=$HOME/virtualenv/python2.7.9/lib/python2.7/site-packages TOX_TESTENV_PASSENV="PYTHONPATH") 08 Nov 2016 11:50AM UTC 0
92.54
Travis Job 2088.2
3 2088.3 (TOXENV=py27-django19-postgres PYTHONPATH=$HOME/virtualenv/python2.7.9/lib/python2.7/site-packages TOX_TESTENV_PASSENV="PYTHONPATH") 08 Nov 2016 11:49AM UTC 0
92.54
Travis Job 2088.3
4 2088.4 (TOXENV=project PYTHONPATH=$HOME/virtualenv/python2.7.9/lib/python2.7/site-packages TOX_TESTENV_PASSENV="PYTHONPATH") 08 Nov 2016 11:47AM UTC 0
25.94
Travis Job 2088.4
Source Files on build 2088
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2088
  • 89ec7e33 on github
  • Next Build on fix/pr5471 (#2089)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc