This comment seems incorrect. We are creating a repo?
Do you want query.one() here instead?
query.one()
One or two small comments above, but otherwise :+1:
Wrong copy/pasta, will adjust :) (likely in more places)
.one() raises an exception if it does not find something, while .first() return None in those situation, so I like .first() and then I normally check if it returned something, rather than putting the method in a try/except block
.one()
.first()
None
try/except
Thanks for the review @ralph