From 638d5ea37557a668f59d76bb34ee4e076787b524 Mon Sep 17 00:00:00 2001 From: oliver Date: Thu, 21 Mar 2019 00:05:26 +0900 Subject: [PATCH] Moved choices inside of a test model per coding style. Follow up to 3a4558b84f76c1dbe54c8c38e90e4048c2bd3e9a. --- tests/model_regress/models.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/model_regress/models.py b/tests/model_regress/models.py index b9db796dcb..a9786e37ab 100644 --- a/tests/model_regress/models.py +++ b/tests/model_regress/models.py @@ -1,12 +1,11 @@ from django.db import models -CHOICES = ( - (1, 'first'), - (2, 'second'), -) - class Article(models.Model): + CHOICES = ( + (1, 'first'), + (2, 'second'), + ) headline = models.CharField(max_length=100, default='Default headline') pub_date = models.DateTimeField() status = models.IntegerField(blank=True, null=True, choices=CHOICES)