Skip to content

Instantly share code, notes, and snippets.

Avatar

Taiza Rabello Montenegro taizarm

  • iZettle
  • Stockholm
View GitHub Profile
@rafaelchagasb
rafaelchagasb / gist:3845490
Created Oct 6, 2012
Filtro de municípios por estados - Django 1.3
View gist:3845490
/* >>>>>>>>>>>>>>> models.py <<<<<<<<<<<<< */
from django.db import models
class MeuModelo(models.Model):
estado = models.ForeignKey('Estado')
cidade = models.ForeignKey('Cidade')
class Pais(models.Model):