File: models.py

package info (click to toggle)
python-testfixtures 9.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,036 kB
  • sloc: python: 10,373; makefile: 76; sh: 9
file content (11 lines) | stat: -rw-r--r-- 250 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
from django.db import models


class OtherModel(models.Model):
    pass


class SampleModel(models.Model):
    value = models.IntegerField()
    not_editable = models.IntegerField(editable=False)
    created = models.DateTimeField(auto_now_add=True)