mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
fixtures: add created and last_udpated fields.
switched fixtures to json to avoid https://code.djangoproject.com/ticket/18867
This commit is contained in:
47
netbox/extras/fixtures/extras.json
Normal file
47
netbox/extras/fixtures/extras.json
Normal file
@ -0,0 +1,47 @@
|
||||
[
|
||||
{
|
||||
"model": "extras.graph",
|
||||
"pk": 1,
|
||||
"fields": {
|
||||
"type": 300,
|
||||
"weight": 1000,
|
||||
"name": "Site Test Graph",
|
||||
"source": "http://localhost/na.png",
|
||||
"link": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"model": "extras.graph",
|
||||
"pk": 2,
|
||||
"fields": {
|
||||
"type": 200,
|
||||
"weight": 1000,
|
||||
"name": "Provider Test Graph",
|
||||
"source": "http://localhost/provider_graph.png",
|
||||
"link": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"model": "extras.graph",
|
||||
"pk": 3,
|
||||
"fields": {
|
||||
"type": 100,
|
||||
"weight": 1000,
|
||||
"name": "Interface Test Graph",
|
||||
"source": "http://localhost/interface_graph.png",
|
||||
"link": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"model": "extras.useraction",
|
||||
"pk": 1,
|
||||
"fields": {
|
||||
"time": "2016-06-23T04:30:37.586Z",
|
||||
"user": 1,
|
||||
"content_type": 10,
|
||||
"object_id": 1,
|
||||
"action": 1,
|
||||
"message": "Created site <a href=\"/dcim/sites/test/\">TEST</a>"
|
||||
}
|
||||
}
|
||||
]
|
Reference in New Issue
Block a user