From eab557f9edc952e94c84c205eb80e4d4a36018e1 Mon Sep 17 00:00:00 2001 From: dresl Date: Thu, 12 May 2016 21:26:55 +0200 Subject: [PATCH] update --- leonardo_polls/__init__.py | 6 ++++++ leonardo_polls/widget/polls/models.py | 5 ++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/leonardo_polls/__init__.py b/leonardo_polls/__init__.py index eda94a9..05ae451 100644 --- a/leonardo_polls/__init__.py +++ b/leonardo_polls/__init__.py @@ -4,6 +4,12 @@ default_app_config = 'leonardo_polls.Config' +LEONARDO_APPS = [ + 'polls', +] + +LEONARDO_PUBLIC = True + class Default(object): optgroup = 'Polls' diff --git a/leonardo_polls/widget/polls/models.py b/leonardo_polls/widget/polls/models.py index b4fa65f..2570e0a 100644 --- a/leonardo_polls/widget/polls/models.py +++ b/leonardo_polls/widget/polls/models.py @@ -3,10 +3,9 @@ from django.db import models from django.utils.translation import ugettext_lazy as _ from leonardo.module.web.models import Page, Widget +from polls.models import Poll -class PollsWidget(Widget): - - title = models.CharField(max_length=255, default="What's up?") +class PollsWidget(Poll): class Meta: abstract = True