mirror of
https://github.com/HackSoftware/Django-Styleguide.git
synced 2025-06-06 06:03:08 +03:00
Update README.md
This commit is contained in:
parent
4271ec5865
commit
2fd171afc8
|
@ -503,10 +503,9 @@ A service can be:
|
||||||
|
|
||||||
- A simple function. (At Shahry we won't be using them at all)
|
- A simple function. (At Shahry we won't be using them at all)
|
||||||
- A class.
|
- A class.
|
||||||
- An entire module.
|
- An entire module when a class-based service gets big for an object gets big enough, or an object has a few domains that require services classes.
|
||||||
- Whatever makes sense in your case.
|
|
||||||
|
|
||||||
In most cases, a service can be simple function that:
|
In most cases, a service can be a simple function that:
|
||||||
|
|
||||||
- Lives in `<your_app>/services.py` module under its object service class.
|
- Lives in `<your_app>/services.py` module under its object service class.
|
||||||
- Takes keyword-only arguments, even if it requires one argument.
|
- Takes keyword-only arguments, even if it requires one argument.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user