You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
255 B
13 lines
255 B
|
13 years ago
|
from django.db import models
|
||
|
|
from django.utils.translation import ugettext_lazy as _
|
||
|
|
|
||
|
|
class TestModel(models.Model):
|
||
|
|
text = models.CharField(max_length=10, default=_('Anything'))
|
||
|
|
|
||
|
|
__test__ = {'API_TESTS': '''
|
||
|
|
>>> tm = TestModel()
|
||
|
|
>>> tm.save()
|
||
|
|
'''
|
||
|
|
}
|
||
|
|
|