Fakultas Ilmu Komputer UI

Commit 71f43625 authored by emil farisan's avatar emil farisan
Browse files

Chapter 10 - Automating Deployment

parent 38c887d9
from django.db import models
# Create your models here.
class List(models.Model):
pass
class Item(models.Model):
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