Commit Graph

5 Commits

Author SHA1 Message Date
Benjamin Dauvergne 7ab9a10a6c add copyright notices 2019-07-04 13:00:43 +02:00
Benjamin Dauvergne 2db8756f48 fargo: prevent pushing the same file many times (#22682)
Bug was discovered because we added the creation_date non-null field as
content_hash is the primary key. When saving a Document with the same
content_hash, Django try to update the existing document by setting
creation_date to NULL which fails.
2018-03-27 13:08:06 +02:00
Benjamin Dauvergne 462d8858f0 api: raise an APIError when too many users match the received email 2016-06-08 17:34:54 +02:00
Benjamin Dauvergne 8365adb4ee add constraint on document box size (fixes #278) 2016-03-28 03:28:54 +02:00
Benjamin Dauvergne a302008b4b add validation API (fixes #10375)
- a serializer for referring to an user factorized with the push document API
- add common mixin for handling validation errors and successfull results
- add common fixtures for writing tests
2016-03-28 03:28:10 +02:00