Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. python manage.py dumpdata app.ModelName --format=yaml > fixtures/dev/fixture_name.yaml
  2.  
  3. - fields: {active: true, created_at: !!timestamp '2016-11-14 10:43:40.221602', age: 54,
  4. updated_at: !!timestamp '2016-11-14 10:43:40.221603', user_type: 1}
  5. model: app.ModelName
  6. pk: 1
  7.  
  8. - fields:
  9. created_at: 2016-11-14 10:43:40.220895
  10. age: 54
  11. user_type: 1
  12. updated_at: 2016-11-14 10:43:40.220900
  13. model: app.ModelName
  14. pk: 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement