You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
In the django package django-find-similar I use adapter from django model to TextToken in find-similar. __init__ method works well. But I need to add new behavior the cos will be saved.
Describe the solution you'd like Here we save cos directly. text.cos = cos
create special method or setter to do in the TextToken class:
defset_cos(cos):
self.cos=cos
Describe alternatives you've considered
we can create python @setter. But in this way we should make cos property protected and create @getter. It's not a problem, just need more attention and replacements.
Additional context
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
In the django package
django-find-similar
I use adapter from django model to TextToken in find-similar.__init__
method works well. But I need to add new behavior the cos will be saved.Describe the solution you'd like
Here we save cos directly.
text.cos = cos
create special method or setter to do in the TextToken class:
Describe alternatives you've considered
we can create python
@setter
. But in this way we should make cos property protected and create@getter
. It's not a problem, just need more attention and replacements.Additional context
The text was updated successfully, but these errors were encountered: