{"action":"closed","issue":{"url":"https://api.github.com/repos/llazzaro/django-scheduler/issues/422","repository_url":"https://api.github.com/repos/llazzaro/django-scheduler","labels_url":"https://api.github.com/repos/llazzaro/django-scheduler/issues/422/labels{/name}","comments_url":"https://api.github.com/repos/llazzaro/django-scheduler/issues/422/comments","events_url":"https://api.github.com/repos/llazzaro/django-scheduler/issues/422/events","html_url":"https://github.com/llazzaro/django-scheduler/issues/422","id":330799483,"node_id":"MDU6SXNzdWUzMzA3OTk0ODM=","number":422,"title":"What do I need to extend shedule.abstractevent to my own model?","user":{"login":"mezitax","id":1774655,"node_id":"MDQ6VXNlcjE3NzQ2NTU=","avatar_url":"https://avatars0.githubusercontent.com/u/1774655?v=4","gravatar_id":"","url":"https://api.github.com/users/mezitax","html_url":"https://github.com/mezitax","followers_url":"https://api.github.com/users/mezitax/followers","following_url":"https://api.github.com/users/mezitax/following{/other_user}","gists_url":"https://api.github.com/users/mezitax/gists{/gist_id}","starred_url":"https://api.github.com/users/mezitax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mezitax/subscriptions","organizations_url":"https://api.github.com/users/mezitax/orgs","repos_url":"https://api.github.com/users/mezitax/repos","events_url":"https://api.github.com/users/mezitax/events{/privacy}","received_events_url":"https://api.github.com/users/mezitax/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-08T20:53:39Z","updated_at":"2018-06-26T19:32:53Z","closed_at":"2018-06-26T19:32:52Z","author_association":"NONE","body":"What do I need to import in my models.py to extend the schedule.AbstractEvent to my own models?\r\nAs much as I try to extend it, I always have the same error\r\n`AttributeError: 'Settings' object has no attribute 'SCHEDULER_CALENDAR_MODEL'`\r\nThis could fix it by hacking this line of sceduler events.py but it's not the idea.\r\n```\r\n     calendar = models.ForeignKey (\r\n             SCHEDULER_CALENDAR_MODEL,\r\n```\r\n\r\nI think maybe I'm doing something wrong and I have to do some other editing on my model\r\nMy intention is to have a Lesson.AbstractEvent, where to take student attendance. A different event, not replace the event model completely.\r\n```\r\nclass Lesson(AbstractEvent):\r\n\tsubject = models.ForeignKey(Subject)\r\n\troom = models.ForeignKey(Salon)\r\n```\r\n\r\nI still can not find a complete documentation or a tutorial to use my own models\r\nAnd I just saw that SCHEDULER_BASE_CLASSES was removed from the app"}}
{"actor":{"display_login":"mezitax"}}