Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dresl committed May 12, 2016
1 parent 11461e6 commit eab557f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 6 additions & 0 deletions leonardo_polls/__init__.py
Expand Up @@ -4,6 +4,12 @@

default_app_config = 'leonardo_polls.Config'

LEONARDO_APPS = [
'polls',
]

LEONARDO_PUBLIC = True

This comment has been minimized.

Copy link
@michaelkuty

michaelkuty May 12, 2016

use public = True on the default object, for apps too


class Default(object):

optgroup = 'Polls'
Expand Down
5 changes: 2 additions & 3 deletions leonardo_polls/widget/polls/models.py
Expand Up @@ -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
Expand Down

0 comments on commit eab557f

Please sign in to comment.