forked from django-cms/django-cms-quickstart
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
romer8
committed
Mar 25, 2024
1 parent
ba185bd
commit 9e36396
Showing
6 changed files
with
34 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +0,0 @@ | ||
from cms.plugin_base import CMSPluginBase | ||
from cms.plugin_pool import plugin_pool | ||
from django.utils.translation import gettext_lazy as _ | ||
from .models import HydroShareResourceList | ||
|
||
import logging | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
@plugin_pool.register_plugin | ||
class HydroShareResourceListPlugin(CMSPluginBase): | ||
model = HydroShareResourceList | ||
name = _("HydroShare Resource List Plugin") | ||
render_template = "hydroshare_list_resources.html" | ||
cache = False | ||
|
||
def render(self, context, instance, placeholder): | ||
context = super().render(context, instance, placeholder) | ||
return context | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 3.2 on 2024-03-25 21:58 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('cms', '0022_auto_20180620_1551'), | ||
('backend', '0031_auto_20240325_1836'), | ||
] | ||
|
||
operations = [ | ||
migrations.DeleteModel( | ||
name='HydroShareResource', | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 3.2 on 2024-03-25 22:27 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('cms', '0022_auto_20180620_1551'), | ||
('backend', '0032_delete_hydroshareresource'), | ||
] | ||
|
||
operations = [ | ||
migrations.DeleteModel( | ||
name='HydroShareResourceList', | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +0,0 @@ | ||
from cms.models.pluginmodel import CMSPlugin | ||
from django.db import models | ||
|
||
|
||
import logging | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
class HydroShareResourceList(CMSPlugin): | ||
user = models.CharField(max_length=200, default="", blank=True) | ||
password = models.CharField(max_length=200, default="", blank=True) | ||
placeholder_image = models.CharField( | ||
max_length=200, default="https://picsum.photos/200" | ||
) | ||
tags = models.CharField(max_length=200, default="") | ||
updated_version = models.IntegerField(default=0, editable=False) | ||
resources = models.JSONField(editable=False, default=dict) | ||
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.