Skip to content

Commit a5144c3

Browse files
committed
remove unecessary sowing fields
1 parent 04a013b commit a5144c3

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

sowing/models_graphql.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ class Sowing(DjangoObjectType, DocumentBase):
1919
author = graphene.Field(User)
2020
species = DjangoConnectionField(lambda: LifeNode)
2121
images = DjangoConnectionField(lambda: Image)
22-
authorName = graphene.String()
23-
authorEmail = graphene.String()
2422

2523
class Meta:
2624
model = SowingModel
@@ -46,12 +44,6 @@ def resolve_species(self, info, **kwargs):
4644
return LifeNode._meta.model.objects.filter(
4745
document__sowing_species=self)
4846

49-
def resolve_authorName(self, info):
50-
return getattr(self, 'author_name', None)
51-
52-
def resolve_authorEmail(self, info):
53-
return getattr(self, 'author_email', None)
54-
5547

5648
class BoundBoxFilter(django_filters.CharFilter):
5749
description = "4 numbers separated by comma that represents a polygon object from the given bounding-box, e.g.: xmin,ymin,xmax,ymax)"

0 commit comments

Comments
 (0)