We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 191d9c6 commit 31eae0aCopy full SHA for 31eae0a
graphene/contrib/django/tests/models.py
@@ -26,6 +26,10 @@ class Article(models.Model):
26
headline = models.CharField(max_length=100)
27
pub_date = models.DateField()
28
reporter = models.ForeignKey(Reporter, related_name='articles')
29
+ lang = models.CharField(max_length=2, help_text='Language', choices=[
30
+ ('es', 'Spanish'),
31
+ ('en', 'English')
32
+ ], default='es')
33
34
def __str__(self): # __unicode__ on Python 2
35
return self.headline
0 commit comments