Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Hjelp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-App-Hjelp
Commits
8b89c5ba
Commit
8b89c5ba
authored
5 years ago
by
Hangzhi Yu
Browse files
Options
Downloads
Patches
Plain Diff
Add CKEditor to settings.py and to FAQ admin interface.
parent
a3ee68ca
No related branches found
No related tags found
1 merge request
!6
Add ckeditor in FAQ questions admin interface
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/apps/hjelp/models.py
+3
-5
3 additions, 5 deletions
aleksis/apps/hjelp/models.py
with
3 additions
and
5 deletions
aleksis/apps/hjelp/models.py
+
3
−
5
View file @
8b89c5ba
...
...
@@ -4,6 +4,8 @@ from django.utils.translation import ugettext_lazy as _
from
.model_helper
import
COLORS
,
ICONS
from
ckeditor.fields
import
RichTextField
class
Support
(
models
.
Model
):
class
Meta
:
...
...
@@ -34,11 +36,7 @@ class FAQQuestion(models.Model):
verbose_name
=
_
(
"
Symbol
"
))
show
=
models
.
BooleanField
(
verbose_name
=
_
(
"
Published
"
),
default
=
False
)
answer_text
=
models
.
TextField
(
blank
=
True
,
help_text
=
_
(
"
You can use HTML syntax in the FAQ-answers!<br> Because of
"
"
our CSS framework all <strong><ul></strong>-Elements
"
"
must have the CSS class <em>browser-default</em>!
"
),
verbose_name
=
_
(
"
Answer
"
))
answer_text
=
RichTextField
()
section
=
models
.
ForeignKey
(
FAQSection
,
on_delete
=
models
.
CASCADE
,
blank
=
True
,
related_name
=
"
questions
"
,
verbose_name
=
_
(
"
Section
"
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment