klen / klen/django_markdown

error when run MarkdownField()

Open
#85 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
389
Forks
140
PR merge metrics
No merged PRs in 30d

Description

Error during template rendering
In template C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\contrib\admin\templates\admin\includes\fieldset.html, error at line 19

context must be a dict rather than Context.
line 19 **{{ field.field }}**

My command in models.py

body = MarkdownField()

Please help me solve this error. I tried but I don't understand how has this error.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with models.py and the Django admin template admin/includes/fieldset.html at line 19, then reproduce the MarkdownField() error during template rendering. Determine why the field reaches the template with an incompatible context and verify that the admin renders the field without the reported context error.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.