Demo entry 2746527



Submitted by anonymous on Sep 25, 2015 at 04:04
Language: Python. Code size: 234 Bytes.


from django.db import models

class Autor(models.Model):
    nome = models.CharField(max_length=100)

class Livro(models.Model):
    titulo = models.CharField(max_length=100)
    autor = models.ForeignKey(Autor)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).