question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug while upgrading to 2.0 with filterssets

See original GitHub issue

While trying to upgrade to 2.0 I’ve gotten this error

"'Meta.fields' or 'Meta.exclude' to the %s class." % cls.__name__
AssertionError: Setting 'Meta.model' without either 'Meta.fields' or 'Meta.exclude' 
has been deprecated since 0.15.0 and is now disallowed. 
Add an explicit 'Meta.fields' or 'Meta.exclude' to the DealroomListingsFilterSet class.

I’m not defining a custom filterset class

This is my node

'''node for dealroom filters'''
from graphene.relay import Node
from graphene_django import DjangoObjectType

from graphene import String, Field


from apps.broker_dashboard.models import DealroomFilterSets

class DealroomFilterSetNode(DjangoObjectType):
    '''Node for DealroomFilterSets '''
    uuid = String(description='uuid')

    def resolve_uuid(self, args, request, info):
        return self.id

    class Meta:
        interfaces = (Node, )
        model = DealroomFilterSets

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
ChillyBwoycommented, Oct 30, 2017

You can define field filter_fields as an empty list:

class Category(DjangoObjectType):
    class Meta:
        model = CategoryModel
        filter_fields = []
        interfaces = (
            relay.Node,
        )
3reactions
Telofycommented, May 11, 2018

+1

And the workaround doesn’t seem to work anymore: TypeError: __init_subclass_with_meta__() got an unexpected keyword argument 'filter_fields'. Keeping the django-filters version at the ancient 0.15.3 does the trick for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

BUG: No MouseDevice when upgrading to E-Prime 3.0 ...
If an experiment created in E-Prime 1.x or E-Prime 2.0 is upgraded to E-Prime 3.0 and the experiment does not have a MouseDevice...
Read more >
Bug Version 2.0.48 - WordPress.org
Since my update from 2.0.46 to 2.0.48 it doesn't work any longer. ... While testing this issue I saw another issue: in new...
Read more >
Cisco Bug: CSCvv74716 - [2.1.2.0] Upgrade Stuck at 0%
Symptom: During a Cisco DNA Center System Package upgrade, the maintenance window screen may become stuck at 0% for multiple hours.
Read more >
url filtering update error - LIVEcommunity - 18496
Packet capture while upgrading : <?BrightCloud version=bcap/1.1?><bcap><seqnum>6</seqnum><response><status>603</status><statusmsg>License ...
Read more >
Bug: An issue exists that may impact Oracle geodatabases ...
Technical Article Details : Bug: An issue exists that may impact Oracle geodatabases after upgrading to ArcGIS Runtime SDK for WPF 10.2.2 or ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found