finished product
This commit is contained in:
10
conversion/models.py
Normal file
10
conversion/models.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
|
||||
class Converter(models.Model):
|
||||
units = models.CharField(max_length=200)
|
||||
value = models.FloatField()
|
||||
|
||||
def __str__(self):
|
||||
return '%s, %f' % (self.units, self.value)
|
||||
Reference in New Issue
Block a user