marcelovicentegc / django-react-typescript

This is a non-opinionated Django 5 + React 18 boilerplate built with great development experience and easy deployment in mind.
MIT License
353 stars 63 forks source link

Publication and Subscriber models not apperaing in the admin area. #52

Closed HHtech-hub closed 3 weeks ago

HHtech-hub commented 1 month ago

I think you need to import the classes in the admin folders __init__.py otherwise django doesn't pick them up.

Adding

from .publications import PublicationAdmin
from .subscribers import SubscriberAdmin

to django-react-typescript\backend\admin\__init__.py

as per: https://stackoverflow.com/questions/61818175/defning-django-admin-models-inside-subdirectories-instead-of-admin-py

marcelovicentegc commented 4 weeks ago

Hey @HHtech-hub, truestory! My bad. I removed them because ruff was accusing these classes were not being used. As it's been a while since I've played with Django, I'm still re-familiarizing with it.

Would you mind opening a PR adding these imports + ignoring this file on ruff.toml?

github-actions[bot] commented 3 weeks ago

:tada: This issue has been resolved in version 1.0.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: