mirror of
https://github.com/Hopiu/django-fobi.git
synced 2026-05-10 22:03:09 +00:00
more on django 2.0
This commit is contained in:
parent
b54f4b6257
commit
2f2d660ee1
1 changed files with 1 additions and 1 deletions
|
|
@ -2196,7 +2196,7 @@ def view_form_entry(request, form_entry_slug, theme=None, template_name=None):
|
|||
user_is_authenticated = request.user.is_authenticated()
|
||||
try:
|
||||
kwargs = {'slug': form_entry_slug}
|
||||
if not user.is_authenticated:
|
||||
if not user_is_authenticated:
|
||||
kwargs.update({'is_public': True})
|
||||
form_entry = FormEntry._default_manager.select_related('user') \
|
||||
.get(**kwargs)
|
||||
|
|
|
|||
Loading…
Reference in a new issue