class Issue(micromodels.Model): number = micromodels.IntegerField() title = micromodels.CharField() state = micromodels.CharField() body = micromodels.CharField() created_at = micromodels.DateTimeField(format=DT_FORMAT) updated_at = micromodels.DateTimeField(format=DT_FORMAT) closed_at = micromodels.DateTimeField(format=DT_FORMAT) labels = micromodels.ModelCollectionField(Label) user = micromodels.ModelField(User) comments = micromodels.IntegerField() milestone = micromodels.ModelField(Milestone)
class User(micromodels.Model): name = micromodels.CharField() posts = micromodels.ModelCollectionField(Post, related_name="author")
class User(micromodels.Model): name = micromodels.CharField() posts = micromodels.ModelCollectionField(Post)
class HasAModelCollectionField(micromodels.Model): first = micromodels.ModelCollectionField(IsASubModel)