django-scheduler icon indicating copy to clipboard operation
django-scheduler copied to clipboard

SCHEDULER_ADMIN_FIELDS does not display fields from SCHEDULER_BASE_CLASSES

Open Liamhanninen opened this issue 4 years ago • 2 comments

I added the following to settings.py:

SCHEDULER_BASE_CLASSES = {
'Event': ['records.models.CalendarEventAbstract'] 
}

SCHEDULER_ADMIN_FIELDS = { 'Event': [('testfield',)]
}

where testfield is a field in CalendarEventAbstract. I then traversed to http://127.0.0.1:8000/admin/schedule/event/1/change/. Once there (it's the event detail/edit view in the admin) I do not see testfield. I'm not sure if I'm supposed to run makemigrations or something but that didn't work either (I don't think abstract models are detected as changes in models anyway). Shouldn't I expect to see testfield in /admin?


![image](https://user-images.githubusercontent.com/15257781/70397257-649e1980-19d6-11ea-867e-728f93085c7c.png)

Liamhanninen avatar Dec 08 '19 22:12 Liamhanninen

is SCHEDULER_BASE_CLASSES removed since 0.8.7? https://github.com/llazzaro/django-scheduler/blob/develop/CHANGELOG#L73

xjlin0 avatar Sep 17 '22 17:09 xjlin0