mirror of
https://github.com/jazzband/django-eav2.git
synced 2026-03-16 22:40:26 +00:00
style(entity): improve code style and consistency in Entity class
- Change `save` method signature to use keyword-only argument
This commit is contained in:
parent
29ceb87434
commit
e3ae5b516d
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ class Entity:
|
|||
"""
|
||||
return self.__dict__[attribute_slug]
|
||||
|
||||
def save(self, commit=True):
|
||||
def save(self, *, commit=True):
|
||||
"""Saves all the EAV values that have been set on this entity."""
|
||||
values = {}
|
||||
attributes = self.get_all_attributes()
|
||||
|
|
|
|||
Loading…
Reference in a new issue