<s> """<STR_LIT>""" <EOL> from __future__ import unicode_literals <EOL> from django . db import models <EOL> from django . utils . encoding import python_2_unicode_compatible <EOL> @ python_2_unicode_compatible <EOL> class Employee ( models . Model ) : <EOL> firstname = models . CharField ( max_length = <NUM_LIT:50> ) <EOL> lastname = models . CharField ( max_length = <NUM_LIT:50> ) <EOL> salary = models . IntegerField ( blank = True , null = True ) <EOL> def __str__ ( self ) : <EOL> return '<STR_LIT>' % ( self . firstname , self . lastname ) <EOL> @ python_2_unicode_compatible <EOL> class Company ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:100> ) <EOL> num_employees = models . PositiveIntegerField ( ) <EOL> num_chairs = models . PositiveIntegerField ( ) <EOL> ceo = models . ForeignKey ( <EOL> Employee , <EOL> models . CASCADE , <EOL> related_name = '<STR_LIT>' ) <EOL> point_of_contact = models . ForeignKey ( <EOL> Employee , <EOL> models . SET_NULL , <EOL> related_name = '<STR_LIT>' , <EOL> null = True ) <EOL> def __str__ ( self ) : <EOL> return self . name <EOL> @ python_2_unicode_compatible <EOL> class Number ( models . Model ) : <EOL> integer = models . BigIntegerField ( db_column = '<STR_LIT>' ) <EOL> float = models . FloatField ( null = True , db_column = '<STR_LIT>' ) <EOL> def __str__ ( self ) : <EOL> return '<STR_LIT>' % ( self . integer , self . float ) <EOL> class Experiment ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT> ) <EOL> assigned = models . DateField ( ) <EOL> completed = models . DateField ( ) <EOL> estimated_time = models . DurationField ( ) <EOL> start = models . DateTimeField ( ) <EOL> end = models . DateTimeField ( ) <EOL> class Meta : <EOL> ordering = ( '<STR_LIT:name>' , ) <EOL> def duration ( self ) : <EOL> return self . end - self . start <EOL> @ python_2_unicode_compatible <EOL> class Time ( models . Model ) : <EOL> time = models . TimeField ( null = True ) <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT:%s>" % self . time <EOL> @ python_2_unicode_compatible <EOL> class UUID ( models . Model ) : <EOL> uuid = models . UUIDField ( null = True ) <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT:%s>" % self . uuid </s>
