root/django/trunk/tests/regressiontests/i18n/models.py
| Revision 6453, 255 bytes (checked in by mtredinnick, 1 year ago) | |
|---|---|
| |
| Line | |
|---|---|
| 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 | } |
Note: See TracBrowser for help on using the browser.
