PageRenderTime 39ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/testproject/store/fixtures/test_data.json

https://code.google.com/p/django-audit-log/
JSON | 876 lines | 876 code | 0 blank | 0 comment | 0 complexity | 6b541a2dd7e238d05cf9759e5847f70a MD5 | raw file
Possible License(s): BSD-3-Clause
  1. [
  2. {
  3. "pk": 5,
  4. "model": "contenttypes.contenttype",
  5. "fields": {
  6. "model": "contenttype",
  7. "name": "content type",
  8. "app_label": "contenttypes"
  9. }
  10. },
  11. {
  12. "pk": 2,
  13. "model": "contenttypes.contenttype",
  14. "fields": {
  15. "model": "group",
  16. "name": "group",
  17. "app_label": "auth"
  18. }
  19. },
  20. {
  21. "pk": 8,
  22. "model": "contenttypes.contenttype",
  23. "fields": {
  24. "model": "logentry",
  25. "name": "log entry",
  26. "app_label": "admin"
  27. }
  28. },
  29. {
  30. "pk": 4,
  31. "model": "contenttypes.contenttype",
  32. "fields": {
  33. "model": "message",
  34. "name": "message",
  35. "app_label": "auth"
  36. }
  37. },
  38. {
  39. "pk": 1,
  40. "model": "contenttypes.contenttype",
  41. "fields": {
  42. "model": "permission",
  43. "name": "permission",
  44. "app_label": "auth"
  45. }
  46. },
  47. {
  48. "pk": 12,
  49. "model": "contenttypes.contenttype",
  50. "fields": {
  51. "model": "product",
  52. "name": "product",
  53. "app_label": "store"
  54. }
  55. },
  56. {
  57. "pk": 11,
  58. "model": "contenttypes.contenttype",
  59. "fields": {
  60. "model": "productauditlogentry",
  61. "name": "product audit log entry",
  62. "app_label": "store"
  63. }
  64. },
  65. {
  66. "pk": 10,
  67. "model": "contenttypes.contenttype",
  68. "fields": {
  69. "model": "productcategory",
  70. "name": "product category",
  71. "app_label": "store"
  72. }
  73. },
  74. {
  75. "pk": 9,
  76. "model": "contenttypes.contenttype",
  77. "fields": {
  78. "model": "productcategoryauditlogentry",
  79. "name": "product category audit log entry",
  80. "app_label": "store"
  81. }
  82. },
  83. {
  84. "pk": 14,
  85. "model": "contenttypes.contenttype",
  86. "fields": {
  87. "model": "saleinvoice",
  88. "name": "sale invoice",
  89. "app_label": "store"
  90. }
  91. },
  92. {
  93. "pk": 13,
  94. "model": "contenttypes.contenttype",
  95. "fields": {
  96. "model": "saleinvoiceauditlogentry",
  97. "name": "sale invoice audit log entry",
  98. "app_label": "store"
  99. }
  100. },
  101. {
  102. "pk": 6,
  103. "model": "contenttypes.contenttype",
  104. "fields": {
  105. "model": "session",
  106. "name": "session",
  107. "app_label": "sessions"
  108. }
  109. },
  110. {
  111. "pk": 7,
  112. "model": "contenttypes.contenttype",
  113. "fields": {
  114. "model": "site",
  115. "name": "site",
  116. "app_label": "sites"
  117. }
  118. },
  119. {
  120. "pk": 16,
  121. "model": "contenttypes.contenttype",
  122. "fields": {
  123. "model": "soldquantity",
  124. "name": "sold quantity",
  125. "app_label": "store"
  126. }
  127. },
  128. {
  129. "pk": 15,
  130. "model": "contenttypes.contenttype",
  131. "fields": {
  132. "model": "soldquantityauditlogentry",
  133. "name": "sold quantity audit log entry",
  134. "app_label": "store"
  135. }
  136. },
  137. {
  138. "pk": 3,
  139. "model": "contenttypes.contenttype",
  140. "fields": {
  141. "model": "user",
  142. "name": "user",
  143. "app_label": "auth"
  144. }
  145. },
  146. {
  147. "pk": "8d32340d611dd555caed7ac976df5b11",
  148. "model": "sessions.session",
  149. "fields": {
  150. "expire_date": "2010-10-20 08:10:27",
  151. "session_data": "gAJ9cQEoVRJfYXV0aF91c2VyX2JhY2tlbmRxAlUpZGphbmdvLmNvbnRyaWIuYXV0aC5iYWNrZW5k\ncy5Nb2RlbEJhY2tlbmRxA1UNX2F1dGhfdXNlcl9pZHEESwF1LjQzNzE1YzRkMzgzNzI5YTc4OGJh\nMzI2ZGY1NTA5Mjlk\n"
  152. }
  153. },
  154. {
  155. "pk": 1,
  156. "model": "sites.site",
  157. "fields": {
  158. "domain": "example.com",
  159. "name": "example.com"
  160. }
  161. },
  162. {
  163. "pk": 8,
  164. "model": "admin.logentry",
  165. "fields": {
  166. "action_flag": 2,
  167. "action_time": "2010-10-06 08:14:24",
  168. "object_repr": "Red door",
  169. "object_id": "4",
  170. "change_message": "Changed price.",
  171. "user": 1,
  172. "content_type": 12
  173. }
  174. },
  175. {
  176. "pk": 7,
  177. "model": "admin.logentry",
  178. "fields": {
  179. "action_flag": 1,
  180. "action_time": "2010-10-06 08:14:07",
  181. "object_repr": "Red door",
  182. "object_id": "4",
  183. "change_message": "",
  184. "user": 1,
  185. "content_type": 12
  186. }
  187. },
  188. {
  189. "pk": 6,
  190. "model": "admin.logentry",
  191. "fields": {
  192. "action_flag": 2,
  193. "action_time": "2010-10-06 08:13:41",
  194. "object_repr": "Black window",
  195. "object_id": "3",
  196. "change_message": "Changed description.",
  197. "user": 1,
  198. "content_type": 12
  199. }
  200. },
  201. {
  202. "pk": 5,
  203. "model": "admin.logentry",
  204. "fields": {
  205. "action_flag": 1,
  206. "action_time": "2010-10-06 08:13:22",
  207. "object_repr": "Black window",
  208. "object_id": "3",
  209. "change_message": "",
  210. "user": 1,
  211. "content_type": 12
  212. }
  213. },
  214. {
  215. "pk": 4,
  216. "model": "admin.logentry",
  217. "fields": {
  218. "action_flag": 1,
  219. "action_time": "2010-10-06 08:12:08",
  220. "object_repr": "White doors",
  221. "object_id": "2",
  222. "change_message": "",
  223. "user": 1,
  224. "content_type": 12
  225. }
  226. },
  227. {
  228. "pk": 3,
  229. "model": "admin.logentry",
  230. "fields": {
  231. "action_flag": 1,
  232. "action_time": "2010-10-06 08:11:42",
  233. "object_repr": "White window",
  234. "object_id": "1",
  235. "change_message": "",
  236. "user": 1,
  237. "content_type": 12
  238. }
  239. },
  240. {
  241. "pk": 2,
  242. "model": "admin.logentry",
  243. "fields": {
  244. "action_flag": 1,
  245. "action_time": "2010-10-06 08:11:13",
  246. "object_repr": "Doors",
  247. "object_id": "Doors",
  248. "change_message": "",
  249. "user": 1,
  250. "content_type": 10
  251. }
  252. },
  253. {
  254. "pk": 1,
  255. "model": "admin.logentry",
  256. "fields": {
  257. "action_flag": 1,
  258. "action_time": "2010-10-06 08:10:51",
  259. "object_repr": "Windows",
  260. "object_id": "Windows",
  261. "change_message": "",
  262. "user": 1,
  263. "content_type": 10
  264. }
  265. },
  266. {
  267. "pk": 2,
  268. "model": "store.productcategoryauditlogentry",
  269. "fields": {
  270. "action_date": "2010-10-06 08:11:13",
  271. "action_user": 1,
  272. "name": "Doors",
  273. "action_type": "I",
  274. "description": "Nice stylish doors for your house"
  275. }
  276. },
  277. {
  278. "pk": 1,
  279. "model": "store.productcategoryauditlogentry",
  280. "fields": {
  281. "action_date": "2010-10-06 08:10:51",
  282. "action_user": 1,
  283. "name": "Windows",
  284. "action_type": "I",
  285. "description": "Nice stylish windows for your house"
  286. }
  287. },
  288. {
  289. "pk": "Windows",
  290. "model": "store.productcategory",
  291. "fields": {
  292. "description": "Nice stylish windows for your house"
  293. }
  294. },
  295. {
  296. "pk": "Doors",
  297. "model": "store.productcategory",
  298. "fields": {
  299. "description": "Nice stylish doors for your house"
  300. }
  301. },
  302. {
  303. "pk": 6,
  304. "model": "store.productauditlogentry",
  305. "fields": {
  306. "category": "Doors",
  307. "description": "Nice stylish reed door for your house",
  308. "price": "33",
  309. "action_user": 1,
  310. "action_date": "2010-10-06 08:14:24",
  311. "action_type": "U",
  312. "id": 4,
  313. "name": "Red door"
  314. }
  315. },
  316. {
  317. "pk": 5,
  318. "model": "store.productauditlogentry",
  319. "fields": {
  320. "category": "Doors",
  321. "description": "Nice stylish reed door for your house",
  322. "price": "333",
  323. "action_user": 1,
  324. "action_date": "2010-10-06 08:14:07",
  325. "action_type": "I",
  326. "id": 4,
  327. "name": "Red door"
  328. }
  329. },
  330. {
  331. "pk": 4,
  332. "model": "store.productauditlogentry",
  333. "fields": {
  334. "category": "Windows",
  335. "description": "Nice stylish black window for your house",
  336. "price": "22",
  337. "action_user": 1,
  338. "action_date": "2010-10-06 08:13:41",
  339. "action_type": "U",
  340. "id": 3,
  341. "name": "Black window"
  342. }
  343. },
  344. {
  345. "pk": 3,
  346. "model": "store.productauditlogentry",
  347. "fields": {
  348. "category": "Windows",
  349. "description": "Black window",
  350. "price": "22",
  351. "action_user": 1,
  352. "action_date": "2010-10-06 08:13:22",
  353. "action_type": "I",
  354. "id": 3,
  355. "name": "Black window"
  356. }
  357. },
  358. {
  359. "pk": 2,
  360. "model": "store.productauditlogentry",
  361. "fields": {
  362. "category": "Doors",
  363. "description": "Nice stylish white door for your house",
  364. "price": "22",
  365. "action_user": 1,
  366. "action_date": "2010-10-06 08:12:08",
  367. "action_type": "I",
  368. "id": 2,
  369. "name": "White doors"
  370. }
  371. },
  372. {
  373. "pk": 1,
  374. "model": "store.productauditlogentry",
  375. "fields": {
  376. "category": "Windows",
  377. "description": "Nice stylish white window for your house",
  378. "price": "33",
  379. "action_user": 1,
  380. "action_date": "2010-10-06 08:11:42",
  381. "action_type": "I",
  382. "id": 1,
  383. "name": "White window"
  384. }
  385. },
  386. {
  387. "pk": 1,
  388. "model": "store.product",
  389. "fields": {
  390. "category": "Windows",
  391. "price": "33",
  392. "name": "White window",
  393. "description": "Nice stylish white window for your house"
  394. }
  395. },
  396. {
  397. "pk": 2,
  398. "model": "store.product",
  399. "fields": {
  400. "category": "Doors",
  401. "price": "22",
  402. "name": "White doors",
  403. "description": "Nice stylish white door for your house"
  404. }
  405. },
  406. {
  407. "pk": 3,
  408. "model": "store.product",
  409. "fields": {
  410. "category": "Windows",
  411. "price": "22",
  412. "name": "Black window",
  413. "description": "Nice stylish black window for your house"
  414. }
  415. },
  416. {
  417. "pk": 4,
  418. "model": "store.product",
  419. "fields": {
  420. "category": "Doors",
  421. "price": "33",
  422. "name": "Red door",
  423. "description": "Nice stylish reed door for your house"
  424. }
  425. },
  426. {
  427. "pk": 22,
  428. "model": "auth.permission",
  429. "fields": {
  430. "codename": "add_logentry",
  431. "name": "Can add log entry",
  432. "content_type": 8
  433. }
  434. },
  435. {
  436. "pk": 23,
  437. "model": "auth.permission",
  438. "fields": {
  439. "codename": "change_logentry",
  440. "name": "Can change log entry",
  441. "content_type": 8
  442. }
  443. },
  444. {
  445. "pk": 24,
  446. "model": "auth.permission",
  447. "fields": {
  448. "codename": "delete_logentry",
  449. "name": "Can delete log entry",
  450. "content_type": 8
  451. }
  452. },
  453. {
  454. "pk": 4,
  455. "model": "auth.permission",
  456. "fields": {
  457. "codename": "add_group",
  458. "name": "Can add group",
  459. "content_type": 2
  460. }
  461. },
  462. {
  463. "pk": 5,
  464. "model": "auth.permission",
  465. "fields": {
  466. "codename": "change_group",
  467. "name": "Can change group",
  468. "content_type": 2
  469. }
  470. },
  471. {
  472. "pk": 6,
  473. "model": "auth.permission",
  474. "fields": {
  475. "codename": "delete_group",
  476. "name": "Can delete group",
  477. "content_type": 2
  478. }
  479. },
  480. {
  481. "pk": 10,
  482. "model": "auth.permission",
  483. "fields": {
  484. "codename": "add_message",
  485. "name": "Can add message",
  486. "content_type": 4
  487. }
  488. },
  489. {
  490. "pk": 11,
  491. "model": "auth.permission",
  492. "fields": {
  493. "codename": "change_message",
  494. "name": "Can change message",
  495. "content_type": 4
  496. }
  497. },
  498. {
  499. "pk": 12,
  500. "model": "auth.permission",
  501. "fields": {
  502. "codename": "delete_message",
  503. "name": "Can delete message",
  504. "content_type": 4
  505. }
  506. },
  507. {
  508. "pk": 1,
  509. "model": "auth.permission",
  510. "fields": {
  511. "codename": "add_permission",
  512. "name": "Can add permission",
  513. "content_type": 1
  514. }
  515. },
  516. {
  517. "pk": 2,
  518. "model": "auth.permission",
  519. "fields": {
  520. "codename": "change_permission",
  521. "name": "Can change permission",
  522. "content_type": 1
  523. }
  524. },
  525. {
  526. "pk": 3,
  527. "model": "auth.permission",
  528. "fields": {
  529. "codename": "delete_permission",
  530. "name": "Can delete permission",
  531. "content_type": 1
  532. }
  533. },
  534. {
  535. "pk": 7,
  536. "model": "auth.permission",
  537. "fields": {
  538. "codename": "add_user",
  539. "name": "Can add user",
  540. "content_type": 3
  541. }
  542. },
  543. {
  544. "pk": 8,
  545. "model": "auth.permission",
  546. "fields": {
  547. "codename": "change_user",
  548. "name": "Can change user",
  549. "content_type": 3
  550. }
  551. },
  552. {
  553. "pk": 9,
  554. "model": "auth.permission",
  555. "fields": {
  556. "codename": "delete_user",
  557. "name": "Can delete user",
  558. "content_type": 3
  559. }
  560. },
  561. {
  562. "pk": 13,
  563. "model": "auth.permission",
  564. "fields": {
  565. "codename": "add_contenttype",
  566. "name": "Can add content type",
  567. "content_type": 5
  568. }
  569. },
  570. {
  571. "pk": 14,
  572. "model": "auth.permission",
  573. "fields": {
  574. "codename": "change_contenttype",
  575. "name": "Can change content type",
  576. "content_type": 5
  577. }
  578. },
  579. {
  580. "pk": 15,
  581. "model": "auth.permission",
  582. "fields": {
  583. "codename": "delete_contenttype",
  584. "name": "Can delete content type",
  585. "content_type": 5
  586. }
  587. },
  588. {
  589. "pk": 16,
  590. "model": "auth.permission",
  591. "fields": {
  592. "codename": "add_session",
  593. "name": "Can add session",
  594. "content_type": 6
  595. }
  596. },
  597. {
  598. "pk": 17,
  599. "model": "auth.permission",
  600. "fields": {
  601. "codename": "change_session",
  602. "name": "Can change session",
  603. "content_type": 6
  604. }
  605. },
  606. {
  607. "pk": 18,
  608. "model": "auth.permission",
  609. "fields": {
  610. "codename": "delete_session",
  611. "name": "Can delete session",
  612. "content_type": 6
  613. }
  614. },
  615. {
  616. "pk": 19,
  617. "model": "auth.permission",
  618. "fields": {
  619. "codename": "add_site",
  620. "name": "Can add site",
  621. "content_type": 7
  622. }
  623. },
  624. {
  625. "pk": 20,
  626. "model": "auth.permission",
  627. "fields": {
  628. "codename": "change_site",
  629. "name": "Can change site",
  630. "content_type": 7
  631. }
  632. },
  633. {
  634. "pk": 21,
  635. "model": "auth.permission",
  636. "fields": {
  637. "codename": "delete_site",
  638. "name": "Can delete site",
  639. "content_type": 7
  640. }
  641. },
  642. {
  643. "pk": 34,
  644. "model": "auth.permission",
  645. "fields": {
  646. "codename": "add_product",
  647. "name": "Can add product",
  648. "content_type": 12
  649. }
  650. },
  651. {
  652. "pk": 35,
  653. "model": "auth.permission",
  654. "fields": {
  655. "codename": "change_product",
  656. "name": "Can change product",
  657. "content_type": 12
  658. }
  659. },
  660. {
  661. "pk": 36,
  662. "model": "auth.permission",
  663. "fields": {
  664. "codename": "delete_product",
  665. "name": "Can delete product",
  666. "content_type": 12
  667. }
  668. },
  669. {
  670. "pk": 31,
  671. "model": "auth.permission",
  672. "fields": {
  673. "codename": "add_productauditlogentry",
  674. "name": "Can add product audit log entry",
  675. "content_type": 11
  676. }
  677. },
  678. {
  679. "pk": 32,
  680. "model": "auth.permission",
  681. "fields": {
  682. "codename": "change_productauditlogentry",
  683. "name": "Can change product audit log entry",
  684. "content_type": 11
  685. }
  686. },
  687. {
  688. "pk": 33,
  689. "model": "auth.permission",
  690. "fields": {
  691. "codename": "delete_productauditlogentry",
  692. "name": "Can delete product audit log entry",
  693. "content_type": 11
  694. }
  695. },
  696. {
  697. "pk": 28,
  698. "model": "auth.permission",
  699. "fields": {
  700. "codename": "add_productcategory",
  701. "name": "Can add product category",
  702. "content_type": 10
  703. }
  704. },
  705. {
  706. "pk": 29,
  707. "model": "auth.permission",
  708. "fields": {
  709. "codename": "change_productcategory",
  710. "name": "Can change product category",
  711. "content_type": 10
  712. }
  713. },
  714. {
  715. "pk": 30,
  716. "model": "auth.permission",
  717. "fields": {
  718. "codename": "delete_productcategory",
  719. "name": "Can delete product category",
  720. "content_type": 10
  721. }
  722. },
  723. {
  724. "pk": 25,
  725. "model": "auth.permission",
  726. "fields": {
  727. "codename": "add_productcategoryauditlogentry",
  728. "name": "Can add product category audit log entry",
  729. "content_type": 9
  730. }
  731. },
  732. {
  733. "pk": 26,
  734. "model": "auth.permission",
  735. "fields": {
  736. "codename": "change_productcategoryauditlogentry",
  737. "name": "Can change product category audit log entry",
  738. "content_type": 9
  739. }
  740. },
  741. {
  742. "pk": 27,
  743. "model": "auth.permission",
  744. "fields": {
  745. "codename": "delete_productcategoryauditlogentry",
  746. "name": "Can delete product category audit log entry",
  747. "content_type": 9
  748. }
  749. },
  750. {
  751. "pk": 40,
  752. "model": "auth.permission",
  753. "fields": {
  754. "codename": "add_saleinvoice",
  755. "name": "Can add sale invoice",
  756. "content_type": 14
  757. }
  758. },
  759. {
  760. "pk": 41,
  761. "model": "auth.permission",
  762. "fields": {
  763. "codename": "change_saleinvoice",
  764. "name": "Can change sale invoice",
  765. "content_type": 14
  766. }
  767. },
  768. {
  769. "pk": 42,
  770. "model": "auth.permission",
  771. "fields": {
  772. "codename": "delete_saleinvoice",
  773. "name": "Can delete sale invoice",
  774. "content_type": 14
  775. }
  776. },
  777. {
  778. "pk": 37,
  779. "model": "auth.permission",
  780. "fields": {
  781. "codename": "add_saleinvoiceauditlogentry",
  782. "name": "Can add sale invoice audit log entry",
  783. "content_type": 13
  784. }
  785. },
  786. {
  787. "pk": 38,
  788. "model": "auth.permission",
  789. "fields": {
  790. "codename": "change_saleinvoiceauditlogentry",
  791. "name": "Can change sale invoice audit log entry",
  792. "content_type": 13
  793. }
  794. },
  795. {
  796. "pk": 39,
  797. "model": "auth.permission",
  798. "fields": {
  799. "codename": "delete_saleinvoiceauditlogentry",
  800. "name": "Can delete sale invoice audit log entry",
  801. "content_type": 13
  802. }
  803. },
  804. {
  805. "pk": 46,
  806. "model": "auth.permission",
  807. "fields": {
  808. "codename": "add_soldquantity",
  809. "name": "Can add sold quantity",
  810. "content_type": 16
  811. }
  812. },
  813. {
  814. "pk": 47,
  815. "model": "auth.permission",
  816. "fields": {
  817. "codename": "change_soldquantity",
  818. "name": "Can change sold quantity",
  819. "content_type": 16
  820. }
  821. },
  822. {
  823. "pk": 48,
  824. "model": "auth.permission",
  825. "fields": {
  826. "codename": "delete_soldquantity",
  827. "name": "Can delete sold quantity",
  828. "content_type": 16
  829. }
  830. },
  831. {
  832. "pk": 43,
  833. "model": "auth.permission",
  834. "fields": {
  835. "codename": "add_soldquantityauditlogentry",
  836. "name": "Can add sold quantity audit log entry",
  837. "content_type": 15
  838. }
  839. },
  840. {
  841. "pk": 44,
  842. "model": "auth.permission",
  843. "fields": {
  844. "codename": "change_soldquantityauditlogentry",
  845. "name": "Can change sold quantity audit log entry",
  846. "content_type": 15
  847. }
  848. },
  849. {
  850. "pk": 45,
  851. "model": "auth.permission",
  852. "fields": {
  853. "codename": "delete_soldquantityauditlogentry",
  854. "name": "Can delete sold quantity audit log entry",
  855. "content_type": 15
  856. }
  857. },
  858. {
  859. "pk": 1,
  860. "model": "auth.user",
  861. "fields": {
  862. "username": "admin",
  863. "first_name": "",
  864. "last_name": "",
  865. "is_active": true,
  866. "is_superuser": true,
  867. "is_staff": true,
  868. "last_login": "2010-10-06 08:10:27",
  869. "groups": [],
  870. "user_permissions": [],
  871. "password": "sha1$d4df0$11a19f97ac29be40f5af832df77e2267a5270198",
  872. "email": "admin@example.com",
  873. "date_joined": "2010-10-06 08:06:29"
  874. }
  875. }
  876. ]