Models¶
These are the Django model object definitions used in application with Django ORM.
- class djangoapp_sample.models.article.Article(*args, **kwargs)[source]¶
A simple article for a blog.
- blog¶
Required related Blog object.
- Type:
models.ForeignKey
- title¶
Required title string.
- Type:
models.CharField
- content¶
Optionnal text content.
- Type:
models.TextField
- publish_start¶
Required publication date determine when article will be available.
- Type:
models.DateTimeField