Skip to content

Instantly share code, notes, and snippets.

View sergei-maertens's full-sized avatar

Sergei Maertens sergei-maertens

View GitHub Profile
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 []
@sergei-maertens
sergei-maertens / uploads.md
Last active July 26, 2019 09:51
Architecture of large-file uploads for DRC

(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.

@sergei-maertens
sergei-maertens / client-libraries.md
Created September 23, 2019 14:38
Overview of available Common Ground client libraries in Python

Python client libraries for Common Ground APIs

In the Common ground vision, data is retrieved from and mutated at the source. In practice, this means that a number of RESTful APIs are to be consumed to interact with the source.

This document provides an overview of available tooling for Python ecosystems.

The assumptions (and thus, requirements for the APIs) for this set of tooling are:

@sergei-maertens
sergei-maertens / jwt.md
Last active November 6, 2019 09:21
JWT doc

Autorisatie Deze API vereist autorisatie. Je kan de token-tool gebruiken om een token te genereren. Zelf een token genereren De tokens die gebruikt worden voor autorisatie zijn [jwt.io][JWT's] (JSON web token). In de API calls moeten deze gebruikt worden in de Authorization header:

Authorization: Bearer 
@sergei-maertens
sergei-maertens / vragen.md
Created November 19, 2019 13:55
Vragen na pilot ZGW APIs bij Gemeente Utrecht

Vragen en antwoorden n.a.v. een pilot ZGW APIs binnen de Utrecht Proeftuin

De vragen die hier beschreven staan komen van een leverancier die een pilot gedraaid hebben tegen een installatie van de APIs voor zaakgericht werken bij de gemeente Utrecht (in een proeftuin-opzet). De context en vragen worden gequote en geanomiseerd overgenomen, omdat de bemerkingen en antwoorden ook voor anderen relevant kunnen zijn.

Authenticatie/autorisatie

UX Library

A design tool/system for re-usable UX components.

Core values:

  • Component approach - so that components can easily be re-used in interfaces without side effects
  • Interactive code previews - so that there's no doubt about what's meant
  • Technology independent - HTML/CSS/JS only, leaves room for frontend framework