Commit Graph

218 Commits

Author SHA1 Message Date
Nicolas Roche 3b1c9c44d7 settings: close local settings file (#61977) 2022-02-25 14:57:14 +01:00
Frédéric Péters 6bcdf1d813 misc: update drf register call to use basename keyword arg (#61951)
gitea/fargo/pipeline/head Build started... Details
2022-02-18 10:29:47 +01:00
Frédéric Péters 7e2b10de82 translation update 2021-11-29 15:43:39 +01:00
Frédéric Péters 80f7f42fc8 general: apply isort & pyupgrade 2021-11-29 14:33:19 +01:00
Frédéric Péters bf9049d87d misc: add settings to block some extensions (#58982) 2021-11-29 14:33:19 +01:00
Benjamin Dauvergne bd8a6e32b6 models: prevent too long error on Origin.slug (#54047) 2021-08-24 10:17:54 +02:00
Emmanuel Cazenave 8763de4c97 api: replace '/' with '-' in file name (#53720)
gitea/fargo/pipeline/head Build started... Details
Compatibility with https://docs.djangoproject.com/en/3.2/releases/2.2.21/ (CVE).
2021-05-06 11:52:12 +02:00
Frédéric Péters faa1f97b00 trivial: apply black 2021-01-11 20:02:29 +01:00
Valentin Deniaud 41f53ebd1a misc: increase djangorestframework version limit (#49537) 2020-12-17 10:29:19 +01:00
Frédéric Péters 69d0db973d misc: update for compatibility with django 2.2 (#41623) 2020-04-14 17:44:23 +02:00
Frédéric Péters 8231aedb30 translation update 2020-04-14 09:18:38 +02:00
Frédéric Péters 559485f76a translation update 2020-04-11 19:56:28 +02:00
Frédéric Péters ac9a609f2b misc: don't ignore duplicated file in occupancy calculation (#41617) 2020-04-11 19:53:15 +02:00
Frédéric Péters ab890bc6c0 templates: set document limit message in a paragraph (#41616) 2020-04-11 19:53:15 +02:00
Frédéric Péters c77aa8a455 templates: don't include document count on homepage (#41615) 2020-04-11 19:53:14 +02:00
Benjamin Dauvergne ed09b38596 Revert "templates: always wrap tables in div.table-container (fixes #22795)"
This reverts commit 49cc5185b2.
2020-04-11 11:24:08 +02:00
Benjamin Dauvergne ac96816391 views: block upload when MAX_DOCUMENTS_PER_USER limit is reached (#41491) 2020-04-10 14:24:14 +02:00
Benjamin Dauvergne f243035c56 settings: add setting FARGO_MAX_DOCUMENTS_PER_USER (#41491)
Limit on number of documents uploaded by an user and stored for him,
it does not apply to documents with an origin (usually uploaded through
the REST API).
2020-04-10 14:24:13 +02:00
Frédéric Péters 6663c63558 misc: change admin to use front login/logout views (#41488) 2020-04-08 22:04:45 +02:00
Frédéric Péters be42fd625f misc: don't allow users to delete other users files (#41493) 2020-04-08 22:04:45 +02:00
Serghei Mihai 8a75f77f8d templates: show document thumbnail only for desktop mode (#40780) 2020-03-18 11:59:31 +01:00
Frédéric Péters 70d5ea861e misc: remove never-implemented document view (#38220) 2019-12-21 16:09:08 +01:00
Benjamin Dauvergne 8c032bd55b pep8ness & style & py3 2019-07-04 13:00:43 +02:00
Benjamin Dauvergne 7ab9a10a6c add copyright notices 2019-07-04 13:00:43 +02:00
Frédéric Péters 99a8987d6b settings: force 0644 as mode for uploaded files (#30905) 2019-02-26 14:50:21 +01:00
Benjamin Dauvergne 077ca84777 views: set Location properly after upload (fixes #30218) 2019-01-30 12:16:23 +01:00
Frédéric Péters ef797f5d1a settings: add default value for THUMBNAIL_FORCE_OVERWRITE (#29920) 2019-01-20 16:29:02 +01:00
Frédéric Péters 510bd0c84f add compatibility with python 3 (#25642) 2018-08-12 17:48:35 +02:00
Frédéric Péters 204722f788 general: always declare django-mellon if it's available (#25641) 2018-08-12 16:46:55 +02:00
Frédéric Péters 5cf5c7d877 add base template for django-mellon error pages (#25526) 2018-08-04 10:56:27 +02:00
Frédéric Péters fe0290b54e templates: remove unused extra_scripts block (#25527) 2018-07-30 21:30:07 +02:00
Frédéric Péters 73eb8c173a make edit/delete links target specific forms (#24166) 2018-06-05 16:59:26 +02:00
Frédéric Péters b2995c82f8 translation update 2018-04-24 10:37:30 +02:00
Frédéric Péters 6d753a0f45 api: allow multiple occurences of same document in portfolio (#23339) 2018-04-24 10:23:11 +02:00
Thomas NOËL ef7a272c3f disable verbosity on fargo-cleanup command (#23099) 2018-04-15 10:02:07 +02:00
Benjamin Dauvergne d7360895c7 migrations: recreate squashed migrations from scratch (fixes #23134) 2018-04-12 15:57:08 +02:00
Benjamin Dauvergne ee69dda58b locale: fix difference in newline ending between msgid and msgstr (#22934) 2018-04-10 10:23:11 +02:00
Benjamin Dauvergne 6cca9e9165 publish occupancy (#16828)
As an absolute size, as a ratio of the max size and as a percentage of
the max size.
2018-04-09 09:38:32 +02:00
Benjamin Dauvergne 09cd831cf4 squash migrations (fixes #22951) 2018-04-09 09:38:32 +02:00
Benjamin Dauvergne aebddbb7bf admin: add oauth2 models, improve search (fixes #22950)
We also add default ordering on creation_date for most models.
2018-04-09 09:38:27 +02:00
Benjamin Dauvergne a465f2c176 oauth2: add command oauth2-put-document (fixes #22948) 2018-04-09 09:37:21 +02:00
Benjamin Dauvergne 76532ef64a oauth2: add command oauth2-create-client (fixes #22949) 2018-04-09 09:34:25 +02:00
Benjamin Dauvergne cbf2f6132b oauth2: improve views (#22934)
- show client name in confirmation and authorization view
- in document put authorize view show a thumbnail of the new document
  and a link to download it.
- if document is already in the portfolio, still show information on the
  client and document.
- factorize returning of the document.
2018-04-04 15:53:22 +02:00
Benjamin Dauvergne 3650d9d2c2 django-tables2: make it compatible with dj-tables2>=1.21 (fixes #22946)
Since version 1.21 django-tables2 does not pass the surrounding context
in the table template anymore, it's only available through table.context.
2018-04-04 15:53:22 +02:00
Benjamin Dauvergne 48b598000f use sorl-thumbnail (fixes #15857)
It replaces GraphicsMagick, we do not use the templatetag as the files
are private.
2018-04-04 15:53:22 +02:00
Benjamin Dauvergne 3a6a89da48 views: log download actions (fixes #22944) 2018-04-03 15:08:22 +02:00
Benjamin Dauvergne 89987b6bd6 settings: improve defaults (fixes #22947) 2018-04-03 15:08:22 +02:00
Benjamin Dauvergne 3fae61924c urls: allow use of django-debug-toolbar (fixes #22945) 2018-04-03 15:08:22 +02:00
Benjamin Dauvergne 4ecdbada32 fargo: add missing migration (#22682)
We set a default to create the new Document.creation_date field but it's
not part of the real models, this migration revert it.
2018-04-03 10:48:26 +02:00
Serghei Mihai 8b1885ad8e locale: add missing spaces and properly close tag (#22934) 2018-03-30 18:57:28 +02:00