picture-tournament/pt/models.py

10 lines
256 B
Python

from django.db import models
# Create your models here.
class Picture(models.Model):
url = models.CharField(max_length=200)
elo = models.FloatField(default=1000)
def __str__(self):
return "#%d: %s: %f" % (self.id, self.url, self.elo)