2009-01-29 18:46:36 +08:00
|
|
|
"""
|
2010-09-28 21:41:40 +08:00
|
|
|
Model for testing arithmetic expressions.
|
2009-01-29 18:46:36 +08:00
|
|
|
"""
|
2010-09-28 21:41:40 +08:00
|
|
|
from django.db import models
|
2009-01-29 18:46:36 +08:00
|
|
|
|
|
|
|
class Number(models.Model):
|
2009-01-31 04:02:42 +08:00
|
|
|
integer = models.IntegerField(db_column='the_integer')
|
|
|
|
float = models.FloatField(null=True, db_column='the_float')
|
2009-01-29 18:46:36 +08:00
|
|
|
|
|
|
|
def __unicode__(self):
|
|
|
|
return u'%i, %.3f' % (self.integer, self.float)
|
|
|
|
|