Skip to content

Instantly share code, notes, and snippets.

Sergei Maertens sergei-maertens

Block or report user

Report or block sergei-maertens

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sergei-maertens
sergei-maertens / uploads.md
Last active Jul 26, 2019
Architecture of large-file uploads for DRC
View uploads.md

(Large) file uploads in DRC

Definitions

Small file: < 3GB Large file: > 3GB

Possible situations:

Summary, each case is specified in more detail further in this document.

View django diff
diff --git a/django/db/models/options.py b/django/db/models/options.py
index cd9cef7..c2e2b6b 100644
--- a/django/db/models/options.py
+++ b/django/db/models/options.py
@@ -194,13 +194,12 @@ class Options(object):
self.index_together = normalize_together(self.index_together)
# Replace any %(model_name)s / %(verbose_name)s placeholders.
- perms = meta_attrs.pop('permissions', self.permissions)
+ perms = meta_attrs.pop('permissions', self.permissions) or []
You can’t perform that action at this time.