Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support HTML tags for Django 2.0 #74

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tarkatronic
Copy link

Fixes #39

I took a much simpler approach to previous works on this. I simply added mark_safe to all of the html output, and then added Django 2.0 to the testing matrix. No more, no less. 😄

I've also verified the output on a local Django 2.0.x application, but have not verified on any <2.0, as I don't actually have one to work with anymore...

@codecov
Copy link

codecov bot commented May 3, 2018

Codecov Report

Merging #74 into master will increase coverage by 0.31%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #74      +/-   ##
==========================================
+ Coverage   72.58%   72.89%   +0.31%     
==========================================
  Files           9        9              
  Lines         434      439       +5     
  Branches       54       54              
==========================================
+ Hits          315      320       +5     
  Misses        114      114              
  Partials        5        5
Impacted Files Coverage Δ
django_celery_monitor/admin.py 55.55% <100%> (+1.83%) ⬆️
django_celery_monitor/utils.py 65.07% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6ec1350...44ee666. Read the comment docs.

@tarkatronic
Copy link
Author

@jezdez Is there any chance of getting a look at this?

@eigenmannmartin
Copy link
Member

@jezdez would really love this feature

Copy link

@misli misli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was just thinking about to handle this in utils.display_field. It already gets allow_tags keyword argument (which defaults to True). It could use it to conditionally apply mark_safe on the return value. That would lead to less code. However, Your change may make it more obvious...

@eigenmannmartin
Copy link
Member

eigenmannmartin commented Dec 25, 2018

@misli, @jezdez can we make this happen some time soon?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants