daily pastebin goal
83%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from django.db import models
  2.  
  3. class Tag(models.Model):
  4.     name = CharField(max_length=255)    
  5.     tag = CharField(max_length=255, unique=True)
  6.  
  7. class GalleryItem(models.Model):
  8.     full_size = ImageField(upload_to='uploads/images/')
  9.     mid_size = ImageField(upload_to='uploads/images/')
  10.     small_size = ImageField(upload_to='uploads/images/')
  11.     tags = ManyToManyField(Tag)
  12.     title = CharField(max_length=255)
  13.     created = DateTimeField(auto_now_add=True)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top