Skip to content

Instantly share code, notes, and snippets.

View jeromelefeuvre's full-sized avatar

Jerome Lefeuvre jeromelefeuvre

  • ONF.ca
  • Montreal, Canada
View GitHub Profile

Customize Save In Django Admin Inline Form

Background

This is a common case in django ORM.

from django.db import models

class Author(models.Model):
@jeromelefeuvre
jeromelefeuvre / _mixins.scss
Created May 5, 2011 21:56 — forked from garyharan/_mixins.scss
Useful scss mixins (rounded corners, gradients, text-field, button)
@mixin box-shadow($top, $left, $blur, $color, $inset: false) {
@if $inset {
-webkit-box-shadow:inset $top $left $blur $color;
-moz-box-shadow:inset $top $left $blur $color;
box-shadow:inset $top $left $blur $color;
} @else {
-webkit-box-shadow: $top $left $blur $color;
-moz-box-shadow: $top $left $blur $color;
box-shadow: $top $left $blur $color;
}