mirror of
https://github.com/HackSoftware/Django-Styleguide.git
synced 2025-02-18 04:20:47 +03:00
Merge pull request #101 from romatallinn/patch-1
Minor typo fix in README
This commit is contained in:
commit
9c763eec2f
|
@ -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