add class user

`user = User.objects.get(username=username)`  

correctly in a class method to use another method of this class?