summaryrefslogtreecommitdiff
path: root/tests/update_only_fields
diff options
context:
space:
mode:
authorManan <manan.yadav02@gmail.com>2018-12-10 19:58:49 +0530
committerTim Graham <timograham@gmail.com>2018-12-10 09:28:49 -0500
commit3a4558b84f76c1dbe54c8c38e90e4048c2bd3e9a (patch)
treebf0efe893cdf2207456c057c674c43ecded9c5a0 /tests/update_only_fields
parentf0082b9a77b76e5fe10a49474d93c3f80a30b928 (diff)
downloaddjango-3a4558b84f76c1dbe54c8c38e90e4048c2bd3e9a.tar.gz
Moved choices inside of test models per coding style.
Diffstat (limited to 'tests/update_only_fields')
-rw-r--r--tests/update_only_fields/models.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/update_only_fields/models.py b/tests/update_only_fields/models.py
index 3d6a9ec8e6..7308c75ea3 100644
--- a/tests/update_only_fields/models.py
+++ b/tests/update_only_fields/models.py
@@ -1,17 +1,16 @@
from django.db import models
-GENDER_CHOICES = (
- ('M', 'Male'),
- ('F', 'Female'),
-)
-
class Account(models.Model):
num = models.IntegerField()
class Person(models.Model):
+ GENDER_CHOICES = (
+ ('M', 'Male'),
+ ('F', 'Female'),
+ )
name = models.CharField(max_length=20)
gender = models.CharField(max_length=1, choices=GENDER_CHOICES)
pid = models.IntegerField(null=True, default=None)