mirror of
https://github.com/HackSoftware/Django-Styleguide.git
synced 2025-06-02 12:13:10 +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 class.
|
||||
- An entire module.
|
||||
- Whatever makes sense in your case.
|
||||
- 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.
|
||||
|
||||
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.
|
||||
- Takes keyword-only arguments, even if it requires one argument.
|
||||
|
|
Loading…
Reference in New Issue
Block a user