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

summernote / django-summernote / 451 / 3
96%
master: 96%

Build:
DEFAULT BRANCH: master
Ran 04 Sep 2018 06:00AM UTC
Files 12
Run time 0s
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

04 Sep 2018 05:58AM UTC coverage: 98.592%. Remained the same
451.3

push

travis-ci

lqez
fix widget repeat rendering

If pop is used to get the value of 'summernote' on self.attrs, then the html returned by render() may change after the first call.  For example:
```python
w=SummernoteWidget(attrs={'summernote':{'height':'123px'}})
w.render('test','',attrs={'id':'test'})
```
Will render the iframe height as '123px', however a second call 
```python
w.render('test','',attrs={'id':'test'})
```
will render whatever the default value for height is instead of '123px' because the summernote value of attrs was popped in the first call and therefore is no longer available for subsequent calls.

This PR fixes that by chaning the self.attrs.pop('summernote', {}) calls in both widgets to self.attrs.get('summernote', {})

280 of 284 relevant lines covered (98.59%)

0.99 hits per line

Source Files on job 451.3
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 446
  • Travis Job 451.3
  • 0838bee8 on github
  • Prev Job for on master (#450.1)
  • Next Job for on master (#452.3)
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