Spaces:
Sleeping
Sleeping
File size: 398 Bytes
cf8de8a 68f34db |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
from ...models import Presentador
from ...utils import controller_error
class PresentadorController():
def __init__(self):
pass
@staticmethod
def getPresenterByUsername(username: str):
try:
presenter = Presentador.objects.get(nombre_usuario=username)
except Presentador.DoesNotExist:
return controller_error("Presentador inexistente")
|