mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-04-09 03:34:21 +03:00
Fix Post name attribute
The `PostNode` class uses as model Post which does not have any field `title`
This commit is contained in:
parent
85da376333
commit
3f139da7ae
|
@ -12,7 +12,7 @@ Let's use a simple example model.
|
|||
from django.db import models
|
||||
|
||||
class Post(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
title = models.CharField(max_length=100)
|
||||
content = models.TextField()
|
||||
published = models.BooleanField(default=False)
|
||||
owner = models.ForeignKey('auth.User')
|
||||
|
|
Loading…
Reference in New Issue
Block a user