jonathan-s / django-sockpuppet

Build reactive applications with the django tooling you already know and love.
https://github.com/jonathan-s/django-sockpuppet
MIT License
450 stars 22 forks source link

object_list now works for ListView and similar views #93

Closed jonathan-s closed 3 years ago

jonathan-s commented 3 years ago

Type of PR (feature, enhancement, bug fix, etc.)

Description

Some views may have a 'setup' in the get part of the view. For instance ListView expects that object_list is added to self during the get request.

So if we get an AttributeError during the reflex we execute the actual get request there, and then go on to generate the context view.

Why should this be added

It's a bug.

Checklist