Differentiate between BaseUser and User #159
Labels
backend
Backend related issues
help-wanted
Help is wanted
python
Pull requests that update Python code
refactor
Code changes or improvements that do not change code behaviour
Description
Differentiate between BaseUser and User by creating a Base class for all users and a User class that implements it, just like Artist is doing it at the moment.
Context
User class serves as BaseUser class and Artist inherits from it. The issue appears when trying to implement new users like for example an admin. This type of user doesnt care about fields such as
playback_history
and so.Currently User class is both a Base class and a Concrete one. This can lead to confusion because other inheritances in the app such as songs have a Base and Concrete class that are not the same.
The aim is to:
BaseUser
User
that inherits fromBaseUser
and its being inherited byArtists
.Watch below for more info about the attributes:
How to do it
BaseUser
User
Testing
The text was updated successfully, but these errors were encountered: