Williano / Bona-Blog

An Open-Source Blogging Platform
MIT License
51 stars 43 forks source link

Invalid field type in article_models.py for class Article #34

Open Lasttrader opened 1 year ago

Lasttrader commented 1 year ago

when I try to pass test, i get error, that "Charfield" don't have attribute "use_required_attribute" to fix this I change few codelines

1.https://github.com/Williano/Bona-Blog/blob/aa68f68f2742031966efb7b883938394d8b83da3/blog/models/article_models.py#L10 need replace to from ckeditor.fields import RichTextField

2. https://github.com/Williano/Bona-Blog/blob/aa68f68f2742031966efb7b883938394d8b83da3/blog/models/article_models.py#L39 change to body = RichTextField(blank=True)

after this all test passed success

Williano commented 1 year ago

Great, thank you I will fix it and push it