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

When a Reflex with underscore is created with the generator it fails #54

Closed JulianFeinauer closed 3 years ago

JulianFeinauer commented 3 years ago

Bug Report

When the generator is used to generate a new reflex which contains an underscore it fails during runtime. Reason is that the Class Name that is generated is not what sockpuppet expects after getting the message from the js code.

Reason

During runtime, the received controller name is transformed from snake case to camel case using the classify method but during code generation the Controller name is the un-classifyed name.

Expected behavior

Expected behavior is to get a correctly generated.

Versions

Django-sockpuppet