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 Post(micromodels.Model): title = micromodels.CharField() author = micromodels.ModelField(User)
class Post(micromodels.Model): title = micromodels.CharField() author = micromodels.ModelField(User, related_name="post")
class HasAModelField(micromodels.Model): first = micromodels.ModelField(IsASubModel)
class Tweet(micromodels.Model): id = micromodels.IntegerField() text = micromodels.CharField() created_at = micromodels.DateTimeField(format="%a %b %d %H:%M:%S +0000 %Y") user = micromodels.ModelField(TwitterUser)
class Comment(micromodels.Model): user = micromodels.ModelField(User) updated_at = micromodels.DateTimeField(format=DT_FORMAT) body = micromodels.CharField()