How to use the feincms.module.blog.models.Entry.objects function in FeinCMS

To help you get started, we’ve selected a few FeinCMS examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github matthiask / django-content-editor / tests / testapp / blog_urls.py View on Github external
from feincms.module.blog.models import Entry


urlpatterns = patterns(
    '',
    url(
        r'^(?P\d+)/',
        generic.DetailView.as_view(
            queryset=Entry.objects.all(),
        ),
        name='blog_entry_detail'
    ),
    url(
        r'^$',
        generic.ListView.as_view(
            queryset=Entry.objects.all(),
        ),
        name='blog_entry_list'
    ),
github feincms / feincms / tests / testapp / blog_urls.py View on Github external
from feincms.module.blog.models import Entry


urlpatterns = [
    url(
        r'^(?P\d+)/',
        generic.DetailView.as_view(
            queryset=Entry.objects.all(),
        ),
        name='blog_entry_detail'
    ),
    url(
        r'^$',
        generic.ListView.as_view(
            queryset=Entry.objects.all(),
        ),
        name='blog_entry_list'
    )
github feincms / feincms / feincms / tests.py View on Github external
def create_entries(self):
        entry = self.create_entry()

        Entry.objects.create(
            published=True,
            title='Something 2',
            slug='something-2',
            language='de',
            translation_of=entry)

        Entry.objects.create(
            published=True,
            title='Something 3',
            slug='something-3',
            language='de')
github matthiask / django-content-editor / feincms / tests.py View on Github external
def create_entries(self):
        entry = self.create_entry()

        Entry.objects.create(
            published=True,
            title='Something 2',
            slug='something-2',
            language='de',
            translation_of=entry)

        Entry.objects.create(
            published=True,
            title='Something 3',
            slug='something-3',
            language='de')
github matthiask / django-content-editor / tests / testapp / blog_urls.py View on Github external
from django.conf.urls import patterns, url
from django.views import generic

from feincms.module.blog.models import Entry


urlpatterns = patterns(
    '',
    url(
        r'^(?P\d+)/',
        generic.DetailView.as_view(
            queryset=Entry.objects.all(),
        ),
        name='blog_entry_detail'
    ),
    url(
        r'^$',
        generic.ListView.as_view(
            queryset=Entry.objects.all(),
        ),
        name='blog_entry_list'
    ),
github feincms / feincms / tests / testapp / blog_urls.py View on Github external
from django.conf.urls import url
from django.views import generic

from feincms.module.blog.models import Entry


urlpatterns = [
    url(
        r'^(?P\d+)/',
        generic.DetailView.as_view(
            queryset=Entry.objects.all(),
        ),
        name='blog_entry_detail'
    ),
    url(
        r'^$',
        generic.ListView.as_view(
            queryset=Entry.objects.all(),
        ),
        name='blog_entry_list'
    )
github matthiask / django-content-editor / example / blog_urls.py View on Github external
from django.conf.urls import patterns, url
from django.views import generic

from feincms.module.blog.models import Entry


urlpatterns = patterns(
    '',
    url(r'^(?P\d+)/', generic.DetailView.as_view(
        queryset=Entry.objects.all(),
        ), name='blog_entry_detail'),
    url(r'^$', generic.ListView.as_view(
        queryset=Entry.objects.all(),
        ), name='blog_entry_list'),
)
github feincms / feincms / example / blog_urls.py View on Github external
from django.conf.urls import patterns, url
from django.views import generic

from feincms.module.blog.models import Entry


urlpatterns = patterns(
    '',
    url(r'^(?P\d+)/', generic.DetailView.as_view(
        queryset=Entry.objects.all(),
        ), name='blog_entry_detail'),
    url(r'^$', generic.ListView.as_view(
        queryset=Entry.objects.all(),
        ), name='blog_entry_list'),
)
github feincms / feincms / example / models.py View on Github external
def children(self, page, **kwargs):
        for entry in Entry.objects.all():
            yield PagePretender(
                title=entry.title,
                url=app_reverse(
                    'blog_entry_detail', 'blog_urls', kwargs={'pk': entry.id}),
                level=page.level + 1,
            )