| 1 | from django.db import models |
| 2 | |
| 3 | |
| 4 | class News(models.Model): |
| 5 | class Meta: |
| 6 | app_label = "test_app" |
| 7 | |
| 8 | title = models.CharField(max_length=50) |
| 9 | visits = models.SmallIntegerField(blank=True, null=True) |
| 10 | |
| 11 | |
| 12 | class Other(models.Model): |
| 13 | class Meta: |
| 14 | app_label = "test_app" |
| 15 | |
| 16 | name = models.CharField(max_length=50) |