Skip to content

Releases: graphql-python/graphene-django

v2.9.1

12 Apr 19:03
e1cfc0a
Compare
Choose a tag to compare

Bugfixes

  • Fix error with DjangoModelFormMutation (#915)

Full changelog: v2.9.0...v2.9.1

v2.9.0

13 Mar 10:20
150008a
Compare
Choose a tag to compare

New features

  • Add options to override how Django Choice fields are converted to Enums (#860)
  • Detect schema export format from output file path (to support exporting .graphql files) (#868)

Bugfixes

  • Allow string references in DjangoListField (#885)
  • Use actual root/variables/context args of the execute method (#878)
  • Include form data in DjangoFormMutation responses (#811)
  • Exclude read_only fields from input in DRF mutation (#882)
  • Fix a typo in the warning (#884)
  • Use to_representation in favor of get_attribute (#848)

Huge thanks to @B4rtware, @fulaphex, @knabben, @protasovse, @GeyseR and @rip-the-jacker for helping!

Full changelog: v2.8.2...v2.9.0

v2.8.2

17 Feb 11:10
11dafd4
Compare
Choose a tag to compare

Bugfixes

  • Check exclude fields correctly (#873)
  • Adding support for disabling enum creation on SerializerMutation (#851)
  • Allow for easier template overrides in graphiql (#863)

Huge thanks to @benhowes and @leewardbound for helping!

Full changelog: v2.8.1...v2.8.2

v2.8.1

07 Feb 10:03
f3f0608
Compare
Choose a tag to compare

Bugfixes

  • Raise exception early if DjangoModelFormMutation doesn't find a model type (#839)
  • Resolve django translation deprecation warnings (#847)
  • Resolve django encoding deprecation warnings (#853)
  • Fix force_str deprecation warning (#858)
  • Only warn don't throw if a field doesn't exist on the Django model (#862)

Huge thanks to @luto and @zhelyabuzhsky for helping!

Full changelog: v2.8.0...v2.8.1

v2.8.0

31 Dec 14:36
Compare
Choose a tag to compare

Changelog

New features

  • Add headers arg to GraphQLTestCase.query (#827)
  • Read csrftoken from DOM if no cookie is set in graphiql browser (#826)
  • Add support for partial updates when using Django Rest Framework serializers (#731)
  • Raise exceptions if fields defined in Meta.fields and Meta.exclude on DjangoObjectType don't exist (#842)

Full changelog: v2.7.1...v2.8.0

v2.7.1

29 Nov 09:14
374d8a8
Compare
Choose a tag to compare

Changelog

Bugfixes

  • Keep original queryset on DjangoFilterConnectionField (#816)

Full changelog: v2.7.0...v2.7.1

v2.7.0

28 Nov 19:27
e82a2d7
Compare
Choose a tag to compare

Changelog

New features

  • Support for Django v3 (#793)

Bugfixes

  • Fix bug with django filter lookup expressions (#805)
  • Fix multiple bugs with the DjangoConnectionField not supporting annotations (#796)

Full changelog: v2.6.0...v2.7.0

v2.6.0

22 Sep 20:22
5068ea0
Compare
Choose a tag to compare

Changelog

Another release before v3. Fingers crossed we'll get v3 out soon!

New features

  • Extend DjangoListField to use model queryset if none defined (#732)
  • Convert DRF ChoiceField to Enum (#537)
  • Adds variables arg to GraphQLTestCase.query (#699)

Bugfixes

  • Handle isnull filters differently (#753)
  • Pin higher version of graphene for proper graphql-core version r… (#768)

Full changelog: v2.5.0...v2.6.0

v2.5.0

10 Aug 10:56
87aebdb
Compare
Choose a tag to compare

Changelog

Squeezing in another release before v3. Mostly bug fixes but also a change to the parts that are required in DjangoConnectionField and DjangoFilterConnectionField which might require a schema update.

New features

  • Set converted Django connections to required (#610)

Bugfixes

  • Fix choices enum: if field can be blank then it isn't required (#714)
  • Check for filters defined on base filterset classes (#730)
  • Make DjangoDebugContext wait for nested fields (#591)

Full changelog: v2.4.0...v2.5.0

v2.4.0

12 Jul 16:45
de98fb5
Compare
Choose a tag to compare

Changelog

Some great new features and lots of bugfixes in this release. A massive thanks to all the contributors that helped out! This release will probably be the last one before v3 (see #705)

New features

  • Add support for write_only fields in SerializerMutation (#555)
  • Enhanced support for proxy models (#603)
  • Add support for filterset_class meta parameter (#600)
  • Add watch option to graphql_schema management command (#656)
  • Add convert_choices_to_enum option on DjangoObjectType Meta class (#674)
  • Add option CAMELCASE_ERRORS to camel case field names in DRF errors (#514 and #689)
  • Mark content of ManyTo* relationships as NonNull (#690)
  • Alias only_fields as fields and exclude_fields as exclude (#691)

Bugfixes

  • Stop enforcing csrf checks in GraphQLTestCase (#658)
  • Correctly propagate help_text as description for many-to-* relations (#579)
  • Fix Django manager check in DjangoConnectionField (which was preventing prefetch_related optimisations from working) (#693)
  • Remove duplicate ErrorType (#701)
  • Ensure correct filter types for DjangoFilterConnectionFields (#682)
  • Fix error of multiple inputs with the same type. When using same serializer. (#530)

Full changelog: v2.3.1...v2.4.0