File: models.py

package info (click to toggle)
python-scrapy 0.14.4-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,064 kB
  • sloc: python: 19,468; xml: 199; sh: 134; makefile: 67
file content (17 lines) | stat: -rw-r--r-- 423 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from django.db import models


class Person(models.Model):
    name = models.CharField(max_length=255)
    age = models.IntegerField()

    class Meta:
        app_label = 'test_djangoitem'

class IdentifiedPerson(models.Model):
    identifier = models.PositiveIntegerField(primary_key=True)
    name = models.CharField(max_length=255)
    age = models.IntegerField()

    class Meta:
        app_label = 'test_djangoitem'