{"action":"created","issue":{"url":"https://api.github.com/repos/django-json-api/django-rest-framework-json-api/issues/237","repository_url":"https://api.github.com/repos/django-json-api/django-rest-framework-json-api","labels_url":"https://api.github.com/repos/django-json-api/django-rest-framework-json-api/issues/237/labels{/name}","comments_url":"https://api.github.com/repos/django-json-api/django-rest-framework-json-api/issues/237/comments","events_url":"https://api.github.com/repos/django-json-api/django-rest-framework-json-api/issues/237/events","html_url":"https://github.com/django-json-api/django-rest-framework-json-api/issues/237","id":152530823,"number":237,"title":"latest 2.0 release throws lot's of 409/Conflict errors","user":{"login":"patroqueeet","id":2073086,"avatar_url":"https://avatars.githubusercontent.com/u/2073086?v=3","gravatar_id":"","url":"https://api.github.com/users/patroqueeet","html_url":"https://github.com/patroqueeet","followers_url":"https://api.github.com/users/patroqueeet/followers","following_url":"https://api.github.com/users/patroqueeet/following{/other_user}","gists_url":"https://api.github.com/users/patroqueeet/gists{/gist_id}","starred_url":"https://api.github.com/users/patroqueeet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patroqueeet/subscriptions","organizations_url":"https://api.github.com/users/patroqueeet/orgs","repos_url":"https://api.github.com/users/patroqueeet/repos","events_url":"https://api.github.com/users/patroqueeet/events{/privacy}","received_events_url":"https://api.github.com/users/patroqueeet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-02T10:49:45Z","updated_at":"2016-05-11T07:53:05Z","closed_at":null,"body":"Dear,\r\n\r\nyour latest upgrade created lot's of failed functionality for my project.\r\n\r\nhere is my code:\r\n```\r\n# settings\r\n# -- REST\r\n  REST_FRAMEWORK = {\r\n      'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAdminUser',),\r\n      'PAGE_SIZE': 500,\r\n      'PAGINATE_BY': 500,\r\n      'PAGINATE_BY_PARAM': 'page_size',\r\n      'MAX_PAGINATE_BY': 500,\r\n      # DRF v3.1+\r\n      'DEFAULT_PAGINATION_CLASS':\r\n          'rest_framework_json_api.pagination.PageNumberPagination',\r\n      'DEFAULT_PARSER_CLASSES': (\r\n          'rest_framework_json_api.parsers.JSONParser',\r\n          'rest_framework.parsers.JSONParser',\r\n          'rest_framework.parsers.FormParser',\r\n          'rest_framework.parsers.MultiPartParser'\r\n      ),\r\n      'DEFAULT_RENDERER_CLASSES': (\r\n          'rest_framework_json_api.renderers.JSONRenderer',\r\n          'rest_framework.renderers.JSONRenderer',\r\n          'rest_framework.renderers.BrowsableAPIRenderer',\r\n      ),\r\n      'DEFAULT_AUTHENTICATION_CLASSES': (\r\n          # 'rest_framework.authentication.BasicAuthentication',\r\n          'rest_framework.authentication.SessionAuthentication',\r\n      ),\r\n      'DEFAULT_FILTER_BACKENDS': (\r\n          'rest_framework.filters.DjangoFilterBackend',\r\n      ),\r\n      # 'DEFAULT_METADATA_CLASS':\r\n          # 'rest_framework_json_api.metadata.JSONAPIMetadata',\r\n  }\r\n\r\nJSON_API_PLURALIZE_RELATION_TYPE = True\r\nJSON_API_FORMAT_RELATION_KEYS = 'underscore'\r\n```\r\n\r\n```\r\n# view, no META!\r\nclass VenueViewSet(viewsets.ModelViewSet, UploadMixin):\r\n      \"\"\"\r\n      API endpoint that allows users to be viewed or edited.\r\n      \"\"\"\r\n      serializer_class = VenueSerializer\r\n      permission_classes = [\r\n          LandlordCanEditPermission,\r\n      ]\r\n      filter_fields = ('place_id',)\r\n```\r\n\r\n```\r\n# serializer\r\nclass SimpleVenueSerializer(serializers.HyperlinkedModelSerializer):\r\n    \"\"\" made to allow for fast calls. used on index page \"\"\"\r\n    static_url = serializers.SerializerMethodField()\r\n    url = serializers.SerializerMethodField()\r\n\r\n    class Meta:\r\n        model = Venue\r\n        fields = (\r\n            'id', 'title', 'url', 'static_url'\r\n            )\r\n```\r\nmy tests confirm its working with `beta.2` but not anymore with the `2.0.0` release\r\n\r\nobserved symptom is: 409/Conflict errors all over the place. I traced it using pdb and found e.g. json contains type `venues` but `get_resource_name` returns `Venue`."},"comment":{"url":"https://api.github.com/repos/django-json-api/django-rest-framework-json-api/issues/comments/218387724","html_url":"https://github.com/django-json-api/django-rest-framework-json-api/issues/237#issuecomment-218387724","issue_url":"https://api.github.com/repos/django-json-api/django-rest-framework-json-api/issues/237","id":218387724,"user":{"login":"patroqueeet","id":2073086,"avatar_url":"https://avatars.githubusercontent.com/u/2073086?v=3","gravatar_id":"","url":"https://api.github.com/users/patroqueeet","html_url":"https://github.com/patroqueeet","followers_url":"https://api.github.com/users/patroqueeet/followers","following_url":"https://api.github.com/users/patroqueeet/following{/other_user}","gists_url":"https://api.github.com/users/patroqueeet/gists{/gist_id}","starred_url":"https://api.github.com/users/patroqueeet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patroqueeet/subscriptions","organizations_url":"https://api.github.com/users/patroqueeet/orgs","repos_url":"https://api.github.com/users/patroqueeet/repos","events_url":"https://api.github.com/users/patroqueeet/events{/privacy}","received_events_url":"https://api.github.com/users/patroqueeet/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T07:53:05Z","updated_at":"2016-05-11T07:53:05Z","body":"short update: still due to do the upgrade. it's not forgotten."}}