# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models


class Product(models.Model):
    name = models.CharField(max_length=120)
    image = models.ImageField(blank=True, upload_to='products')
    price = models.IntegerField()

    def __str__(self):
        return self.name

