Guest User

Untitled

a guest
Jun 18th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. from django.db import models
  2. from django.forms import ModelForm
  3. from syncr.picasaweb import models as picasaweb
  4.  
  5.  
  6. class Item(models.Model):
  7. name = models.CharField(max_length = 64)
  8. description = models.TextField()
  9. price = models.FloatField()
  10. taken = models.BooleanField(default = False)
  11. images = models.ManyToManyField(picasaweb.Photo, null = True)
  12.  
  13. class ItemForm(ModelForm):
  14. class Meta:
  15. model = Item
  16. fields = ['name', ]
Add Comment
Please, Sign In to add comment