Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
django-cms-highlighted-content
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WebU
shared
django-cms-highlighted-content
Commits
a82076ce
Commit
a82076ce
authored
1 year ago
by
Dylann Cordel
Browse files
Options
Downloads
Patches
Plain Diff
python 3
parent
d688c845
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cms_highlighted_content/models.py
+3
-3
3 additions, 3 deletions
cms_highlighted_content/models.py
with
3 additions
and
3 deletions
cms_highlighted_content/models.py
+
3
−
3
View file @
a82076ce
# -*- coding: utf-8 -*-
# Future imports
from
__future__
import
unicode_literals
# Django imports
from
django.contrib.contenttypes.fields
import
GenericForeignKey
from
django.contrib.contenttypes.models
import
ContentType
from
django.db
import
models
from
django.template.loader
import
select_template
from
django.utils.encoding
import
force_text
from
django.utils.encoding
import
python_2_unicode_compatible
from
django.utils.translation
import
ugettext_lazy
as
_
# Third Party
from
cms.models
import
CMSPlugin
from
cms.models.fields
import
PageField
###################################################################################################
###################################################################################################
@python_2_unicode_compatible
class
HighlightedContentPluginBase
(
CMSPlugin
):
title
=
models
.
CharField
(
...
...
@@ -68,7 +69,6 @@ class HighlightedContentPluginBase(CMSPlugin):
###################################################################################################
###################################################################################################
@python_2_unicode_compatible
class
HighlightedContentItemBase
(
models
.
Model
):
order
=
models
.
PositiveSmallIntegerField
(
...
...
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