Advertisement
HeryManitra

modelspy

Jan 30th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. from __future__ import unicode_literals
  2.  
  3. from django.db import models
  4.  
  5. # Create your models here.
  6. class Thing (models.Model):
  7.     name= models.CharField(max_length=255)
  8.     description=models.TextField()
  9. slug=models.SlugField(unique=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement