from django.db import models


class Picture(models.Model):
    feature = models.ImageField(upload_to="raw/")
    label = models.CharField(max_length=240)
    score = models.IntegerField(default=0)
    co2 = models.FloatField(blank=True, null=True)
    recyclable = models.BooleanField(default=False)
    created_at = models.DateTimeField(auto_now_add=True)

    def __str__(self):
        return self.feature.path

    def __unicode__(self):
        return unicode(self.feature.path)

    class Meta:
        ordering = ('-created_at',)

a46102bce38d305e62b7cfeaec7097085c15dc83
<mask token>


class Picture(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def __str__(self):
        return self.feature.path
    <mask token>


    class Meta:
        ordering = '-created_at',

<mask token>


class Picture(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def __str__(self):
        return self.feature.path

    def __unicode__(self):
        return unicode(self.feature.path)


    class Meta:
        ordering = '-created_at',

<mask token>


class Picture(models.Model):
    feature = models.ImageField(upload_to='raw/')
    label = models.CharField(max_length=240)
    score = models.IntegerField(default=0)
    co2 = models.FloatField(blank=True, null=True)
    recyclable = models.BooleanField(default=False)
    created_at = models.DateTimeField(auto_now_add=True)

    def __str__(self):
        return self.feature.path

    def __unicode__(self):
        return unicode(self.feature.path)


    class Meta:
        ordering = '-created_at',

from django.db import models


class Picture(models.Model):
    feature = models.ImageField(upload_to='raw/')
    label = models.CharField(max_length=240)
    score = models.IntegerField(default=0)
    co2 = models.FloatField(blank=True, null=True)
    recyclable = models.BooleanField(default=False)
    created_at = models.DateTimeField(auto_now_add=True)

    def __str__(self):
        return self.feature.path

    def __unicode__(self):
        return unicode(self.feature.path)


    class Meta:
        ordering = '-created_at',

from django.db import models


class Picture(models.Model):
    feature = models.ImageField(upload_to="raw/")
    label = models.CharField(max_length=240)
    score = models.IntegerField(default=0)
    co2 = models.FloatField(blank=True, null=True)
    recyclable = models.BooleanField(default=False)
    created_at = models.DateTimeField(auto_now_add=True)

    def __str__(self):
        return self.feature.path

    def __unicode__(self):
        return unicode(self.feature.path)

    class Meta:
        ordering = ('-created_at',)
