fix uplaod and postgres auth

postgres uses uuid fields which raise an exception at https://github.com/novapost/localshop/blob/develop/localshop/apps/permissions/utils.py#L31 when trying to authenticte against a username. added a try/except

I also fixed upload merging @chaica commit