Hacker News new | ask | show | jobs
by blackrobot 2038 days ago
Where does the `@sql` decorator come from? If it's not adding attributes that are django specific, then you lose most of django's functionality built around models: automatic admin, user model, etc...
1 comments

An idea that I submitted for discussion here:

https://github.com/ppinard/dataclasses-sql/issues/4

My belief is that the django functionality can be added back in the form of decorators.

I have similar work to add @graphql to python dataclasses.