~grupoesoc/cubicerp-addons/7.0

« back to all changes in this revision

Viewing changes to report_geraldo/lib/geraldo/site/newsite/django_1_0/tests/regressiontests/i18n/models.py

  • Committer: Cubic ERP
  • Date: 2014-01-07 15:38:09 UTC
  • Revision ID: info@cubicerp.com-20140107153809-4jmif3zoi8rcveve
[ADD] cubicReport

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from django.db import models
 
2
from django.utils.translation import ugettext_lazy as _
 
3
 
 
4
class TestModel(models.Model):
 
5
    text = models.CharField(max_length=10, default=_('Anything'))
 
6
 
 
7
__test__ = {'API_TESTS': '''
 
8
>>> tm = TestModel()
 
9
>>> tm.save()
 
10
'''
 
11
}
 
12