Skip to content

Instantly share code, notes, and snippets.

@wullerot
wullerot / admin.py
Last active October 14, 2017 09:19
django-modeltranslation-language-tabs
from __future__ import unicode_literals
from django.conf import settings
class LanguageTabsMixin(object):
change_form_template = 'admin/modeltranslation/change_form.html'
def change_view(self, request, object_id, form_url='', extra_context=None):
context = extra_context or {}
@wullerot
wullerot / columns.html
Last active July 24, 2017 10:25
Simple Js Columns
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>Simple js columns test</title>
<style>
.js-columns-col {
display: inline-block;
vertical-align: top;
}