Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

FieldDoesNotExist #39

Open
carlitux opened this issue Jan 12, 2015 · 2 comments
Open

FieldDoesNotExist #39

carlitux opened this issue Jan 12, 2015 · 2 comments

Comments

@carlitux
Copy link

django.db.models.options in get_field
FieldDoesNotExist: NewsTranslation has no field named 'publication_start'

@dukelec
Copy link

dukelec commented Jan 12, 2015

Make a change to site-packages/aldryn_news/views.py, Line 33

class ArchiveView(BaseNewsView, ArchiveIndexView):

    date_field = 'publication_start'
    allow_empty = True
    allow_future = True
    template_name = 'aldryn_news/news_list.html'
    date_list_period = 'month'
    model = News

    def get_queryset(self):
        ......

add the line "model = News" fix this problem

Issue occur at site-packages/django/views/generic/dates.py,
Line 288: function: DateMixin.uses_datetime_field

my django version is 1.6.9

@kirschnj
Copy link

kirschnj commented Mar 9, 2015

The suggested fix works for me. When will there be an updated release?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants