mirror of
https://github.com/HackSoftware/Django-Styleguide.git
synced 2024-11-13 05:06:41 +03:00
Minor typo fix in README
This commit is contained in:
parent
ec20b3f0f7
commit
f1a5400d19
|
@ -254,7 +254,7 @@ We are defining the model's `clean` method, because we want to make sure we get
|
||||||
|
|
||||||
Now, in order for the `clean` method to be called, someone must call `full_clean` on an instance of our model, before saving.
|
Now, in order for the `clean` method to be called, someone must call `full_clean` on an instance of our model, before saving.
|
||||||
|
|
||||||
**Our recommendation is to do that in the service, right before calling clean:**
|
**Our recommendation is to do that in the service, right before calling save:**
|
||||||
|
|
||||||
```python
|
```python
|
||||||
def course_create(*, name: str, start_date: date, end_date: date) -> Course:
|
def course_create(*, name: str, start_date: date, end_date: date) -> Course:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user