Fakultas Ilmu Komputer UI

Commit 6f81a0de authored by EMIL's avatar EMIL
Browse files

Merge branch 'ex10' into 'master'

Chapter 10 - Automating Deployment

See merge request !8
parents c4a5ac1c 71f43625
from django.db import models from django.db import models
# Create your models here.
class List(models.Model):
pass
class Item(models.Model): class Item(models.Model):
text = models.TextField(default='') text = models.TextField(default='')
list = models.ForeignKey(List, default=None, on_delete=models.CASCADE)
slug = models.SlugField(blank=True)
class Meta:
ordering = ('id',)
unique_together = ('list', 'text')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment