summaryrefslogtreecommitdiff
path: root/tests/modeltests/force_insert_update/models.py
blob: e617aa228a17273cb4687c32b5f71dbcd70f14db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
"""
Tests for forcing insert and update queries (instead of Django's normal
automatic behaviour).
"""
from django.db import models

class Counter(models.Model):
    name = models.CharField(max_length = 10)
    value = models.IntegerField()

class WithCustomPK(models.Model):
    name = models.IntegerField(primary_key=True)
    value = models.IntegerField()