<s> from __future__ import unicode_literals <EOL> from django . db import models <EOL> from django . utils . encoding import python_2_unicode_compatible <EOL> ___all__ = ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , ) <EOL> class CharModel ( models . Model ) : <EOL> field = models . CharField ( max_length = <NUM_LIT:10> ) <EOL> class IntegerModel ( models . Model ) : <EOL> field = models . IntegerField ( ) <EOL> class TextModel ( models . Model ) : <EOL> field = models . TextField ( max_length = <NUM_LIT:100> ) <EOL> class BooleanModel ( models . Model ) : <EOL> field = models . BooleanField ( default = False ) <EOL> class DateModel ( models . Model ) : <EOL> field = models . DateField ( ) <EOL> class DateTimeModel ( models . Model ) : <EOL> field = models . DateTimeField ( ) <EOL> class ForeignKeyModel ( models . Model ) : <EOL> field = models . ForeignKey ( CharModel ) <EOL> class ManyToManyModel ( models . Model ) : <EOL> field = models . ManyToManyField ( CharModel ) <EOL> class FileModel ( models . Model ) : <EOL> field = models . FileField ( upload_to = '<STR_LIT:.>' ) <EOL> @ python_2_unicode_compatible <EOL> class TestModel ( models . Model ) : <EOL> field1 = models . CharField ( max_length = <NUM_LIT:10> , verbose_name = "<STR_LIT>" ) <EOL> field2 = models . IntegerField ( verbose_name = "<STR_LIT>" ) <EOL> no_verbose = models . IntegerField ( ) <EOL> def __str__ ( self ) : <EOL> return '<STR_LIT>' % ( self . field1 , self . field2 ) <EOL> __unicode__ = __str__ <EOL> def get_double ( self ) : <EOL> return self . field2 * <NUM_LIT:2> </s>
