Skip to content

Commit

Permalink
docs(add-model): import model to views.py step
Browse files Browse the repository at this point in the history
  • Loading branch information
dmartin4820 authored and fyliu committed Aug 26, 2024
1 parent 89cd778 commit beeaeec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/how-to/add-model-and-api-endpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,12 @@ Viewset defines the set of API endpoints for the model.

In `app/core/api/views.py`

1. Import the model

```python title="app/core/api/views.py" linenums="1"
from ..models import RecurringEvent
```

1. Import the serializer

```python title="app/core/api/views.py" linenums="1"
Expand Down

0 comments on commit beeaeec

Please sign in to comment.