blob: 9516be77186e6e9d4c5fb0000f4e4f5458c5f2e7 (
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, transaction, IntegrityError
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()
|