<s> from django . db import models <EOL> from django . contrib . contenttypes import generic <EOL> from django . contrib . contenttypes . models import ContentType <EOL> class Award ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT> ) <EOL> object_id = models . PositiveIntegerField ( ) <EOL> content_type = models . ForeignKey ( ContentType ) <EOL> content_object = generic . GenericForeignKey ( ) <EOL> class AwardNote ( models . Model ) : <EOL> award = models . ForeignKey ( Award ) <EOL> note = models . CharField ( max_length = <NUM_LIT:100> ) <EOL> class Person ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT> ) <EOL> awards = generic . GenericRelation ( Award ) <EOL> class Book ( models . Model ) : <EOL> pagecount = models . IntegerField ( ) <EOL> class Toy ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:50> ) <EOL> class Child ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:50> ) <EOL> toys = models . ManyToManyField ( Toy , through = '<STR_LIT>' ) <EOL> class PlayedWith ( models . Model ) : <EOL> child = models . ForeignKey ( Child ) <EOL> toy = models . ForeignKey ( Toy ) <EOL> date = models . DateField ( db_column = '<STR_LIT>' ) <EOL> class PlayedWithNote ( models . Model ) : <EOL> played = models . ForeignKey ( PlayedWith ) <EOL> note = models . TextField ( ) <EOL> class Contact ( models . Model ) : <EOL> label = models . CharField ( max_length = <NUM_LIT:100> ) <EOL> class Email ( Contact ) : <EOL> email_address = models . EmailField ( max_length = <NUM_LIT:100> ) <EOL> class Researcher ( models . Model ) : <EOL> contacts = models . ManyToManyField ( Contact , related_name = "<STR_LIT>" ) <EOL> class Food ( models . Model ) : <EOL> name = models . CharField ( max_length = <NUM_LIT:20> , unique = True ) <EOL> class Eaten ( models . Model ) : <EOL> food = models . ForeignKey ( Food , to_field = "<STR_LIT:name>" ) <EOL> meal = models . CharField ( max_length = <NUM_LIT:20> ) <EOL> class Policy ( models . Model ) : <EOL> policy_number = models . CharField ( max_length = <NUM_LIT:10> ) <EOL> class Version ( models . Model ) : <EOL> policy = models . ForeignKey ( Policy ) <EOL> class Location ( models . Model ) : <EOL> version = models . ForeignKey ( Version , blank = True , null = True ) <EOL> class Item ( models . Model ) : <EOL> version = models . ForeignKey ( Version ) <EOL> location = models . ForeignKey ( Location , blank = True , null = True ) </s>
