Skip to content

api devices export fails #7397

@rfdrake

Description

@rfdrake

NetBox version

v3.0.4

Python version

3.9

Steps to Reproduce

  1. Create an export template. Name: g, Content Type: dcim | devices. Query: {{ queryset }}
  2. perform an api call to https://netbox/api/dcim/devices/?export=g
  3. error: 'NoneType' object has no attribute 'Meta'
  4. move the export template to dcim | sites
  5. rerun api call to https://netbox/api/dcim/sites/?export=g
  6. success

Expected Behavior

The export template should be run, the same way as if it is run in the netbox site UI.

Observed Behavior

<class 'AttributeError'>
'NoneType' object has no attribute 'Meta' Python version: 3.9.5 NetBox version: 3.0.4

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions