File: models.py

package info (click to toggle)
python-django-test-migrations 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 436 kB
  • sloc: python: 1,479; makefile: 26
file content (10 lines) | stat: -rw-r--r-- 259 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
from django.db import models

_SomeItemStringFieldLength = 50


class SomeItem(models.Model):
    """We use this model for testing migrations."""

    string_field = models.CharField(max_length=_SomeItemStringFieldLength)
    is_clean = models.BooleanField()