Bläddra i källkod

Export/import compatibility with postgres
- Fix import path
- Also adds two additional author profiles
- Remove some old fixtures

Scot Hacker 8 år sedan
förälder
incheckning
57d217f143

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 2069
bakerydemo.json


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 3374 - 18
bakerydemo/base/fixtures/bakerydemo.json


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 307
bakerydemo/base/fixtures/breads.json


+ 0 - 10
bakerydemo/base/fixtures/collections.json

@@ -1,10 +0,0 @@
-[{
-  "model": "wagtailcore.collection",
-  "pk": 2,
-  "fields": {
-    "path": "00010001",
-    "depth": 2,
-    "numchild": 0,
-    "name": "Breads"
-  }
-}]

+ 0 - 217
bakerydemo/base/fixtures/images.json

@@ -1,217 +0,0 @@
-[
-{
-  "model": "wagtailimages.image",
-  "pk": 2,
-  "fields": {
-    "collection": 2,
-    "title": "Anadama",
-    "file": "original_images/Anadama_bread_1.jpg",
-    "width": 4752,
-    "height": 3168,
-    "created_at": "2017-02-10T13:03:58.541Z",
-    "uploaded_by_user": 1,
-    "focal_point_x": null,
-    "focal_point_y": null,
-    "focal_point_width": null,
-    "focal_point_height": null,
-    "file_size": null
-  }
-},
-{
-  "model": "wagtailimages.image",
-  "pk": 3,
-  "fields": {
-    "collection": 2,
-    "title": "Anpan",
-    "file": "original_images/Bean-jam-bunanpankatori-cityjapan.JPG",
-    "width": 800,
-    "height": 640,
-    "created_at": "2017-02-10T13:05:45.828Z",
-    "uploaded_by_user": 1,
-    "focal_point_x": null,
-    "focal_point_y": null,
-    "focal_point_width": null,
-    "focal_point_height": null,
-    "file_size": null
-  }
-},
-{
-  "model": "wagtailimages.image",
-  "pk": 4,
-  "fields": {
-    "collection": 2,
-    "title": "Bazin",
-    "file": "original_images/Bazin.jpg",
-    "width": 1600,
-    "height": 1200,
-    "created_at": "2017-02-10T13:08:04.012Z",
-    "uploaded_by_user": 1,
-    "focal_point_x": null,
-    "focal_point_y": null,
-    "focal_point_width": null,
-    "focal_point_height": null,
-    "file_size": null
-  }
-},
-{
-  "model": "wagtailimages.image",
-  "pk": 5,
-  "fields": {
-    "collection": 2,
-    "title": "Belgian Waffle",
-    "file": "original_images/Belgische_waffeln.jpg",
-    "width": 2025,
-    "height": 1536,
-    "created_at": "2017-02-10T13:10:05.988Z",
-    "uploaded_by_user": 1,
-    "focal_point_x": null,
-    "focal_point_y": null,
-    "focal_point_width": null,
-    "focal_point_height": null,
-    "file_size": null
-  }
-},
-{
-  "model": "wagtailimages.image",
-  "pk": 6,
-  "fields": {
-    "collection": 2,
-    "title": "Bhakri",
-    "file": "original_images/Another_Vegetarian_Meal.jpg",
-    "width": 1600,
-    "height": 1200,
-    "created_at": "2017-02-10T13:15:25.730Z",
-    "uploaded_by_user": 1,
-    "focal_point_x": null,
-    "focal_point_y": null,
-    "focal_point_width": null,
-    "focal_point_height": null,
-    "file_size": null
-  }
-},
-{
-  "model": "wagtailimages.image",
-  "pk": 7,
-  "fields": {
-    "collection": 2,
-    "title": "Black Bread",
-    "file": "original_images/Mischbrot-1.jpg",
-    "width": 2000,
-    "height": 1500,
-    "created_at": "2017-02-10T13:17:14.968Z",
-    "uploaded_by_user": 1,
-    "focal_point_x": null,
-    "focal_point_y": null,
-    "focal_point_width": null,
-    "focal_point_height": null,
-    "file_size": null
-  }
-},
-{
-  "model": "wagtailimages.image",
-  "pk": 8,
-  "fields": {
-    "collection": 2,
-    "title": "Appam",
-    "file": "original_images/Appam_served_with_Coconut_Milk_in_Tamil_Nadu.JPG",
-    "width": 2362,
-    "height": 1064,
-    "created_at": "2017-02-10T13:19:24.588Z",
-    "uploaded_by_user": 1,
-    "focal_point_x": null,
-    "focal_point_y": null,
-    "focal_point_width": null,
-    "focal_point_height": null,
-    "file_size": null
-  }
-},
-{
-  "model": "wagtailimages.image",
-  "pk": 9,
-  "fields": {
-    "collection": 1,
-    "title": "Arepa",
-    "file": "original_images/Arepa_asada.JPG",
-    "width": 1600,
-    "height": 1200,
-    "created_at": "2017-02-10T13:22:40.113Z",
-    "uploaded_by_user": 1,
-    "focal_point_x": null,
-    "focal_point_y": null,
-    "focal_point_width": null,
-    "focal_point_height": null,
-    "file_size": null
-  }
-},
-{
-  "model": "wagtailimages.image",
-  "pk": 10,
-  "fields": {
-    "collection": 2,
-    "title": "Bolani",
-    "file": "original_images/Bolani_Afghan_bread_01.jpg",
-    "width": 1280,
-    "height": 960,
-    "created_at": "2017-02-10T13:24:28.559Z",
-    "uploaded_by_user": 1,
-    "focal_point_x": null,
-    "focal_point_y": null,
-    "focal_point_width": null,
-    "focal_point_height": null,
-    "file_size": null
-  }
-},
-{
-  "model": "wagtailimages.image",
-  "pk": 11,
-  "fields": {
-    "collection": 2,
-    "title": "Baguette",
-    "file": "original_images/Baguette_de_pain_WikiCheese_Lausanne.jpg",
-    "width": 4032,
-    "height": 1958,
-    "created_at": "2017-02-10T13:24:47.838Z",
-    "uploaded_by_user": 1,
-    "focal_point_x": null,
-    "focal_point_y": null,
-    "focal_point_width": null,
-    "focal_point_height": null,
-    "file_size": null
-  }
-},
-{
-  "model": "wagtailimages.image",
-  "pk": 12,
-  "fields": {
-    "collection": 2,
-    "title": "Bammie",
-    "file": "original_images/Bammies.jpg",
-    "width": 1700,
-    "height": 1527,
-    "created_at": "2017-02-10T13:27:19.252Z",
-    "uploaded_by_user": 1,
-    "focal_point_x": null,
-    "focal_point_y": null,
-    "focal_point_width": null,
-    "focal_point_height": null,
-    "file_size": null
-  }
-},
-{
-  "model": "wagtailimages.image",
-  "pk": 13,
-  "fields": {
-    "collection": 1,
-    "title": "Bagel",
-    "file": "original_images/Plain-Bagel.jpg",
-    "width": 1920,
-    "height": 1660,
-    "created_at": "2017-02-10T13:28:30.500Z",
-    "uploaded_by_user": 1,
-    "focal_point_x": null,
-    "focal_point_y": null,
-    "focal_point_width": null,
-    "focal_point_height": null,
-    "file_size": null
-  }
-}]

BIN
bakerydemo/media/original_images/Person_Undefined_Female_Dark.png


BIN
bakerydemo/media/original_images/howlin.jpg


BIN
bakerydemo/media/original_images/lightnin_hopkins.jpg


BIN
bakerydemo/media/original_images/muddy_waters_hUPkmSW.jpg


+ 1 - 3
readme.md

@@ -189,8 +189,6 @@ followed by `delete from wagtailimages_rendition;`
 
 To generate new fixtures, run:
 
-`./manage.py dumpdata --indent 2 auth wagtailcore wagtailimages.image base breads blog locations > bakerydemo.json`
-
-(modify this export command if new models are added in future).
+`./manage.py dumpdata --natural-foreign --indent 2 -e auth.permission -e contenttypes -e wagtailcore.GroupCollectionPermission -e wagtailimages.filter -e wagtailcore.pagerevision -e wagtailimage.rendition -e sessions > bakerydemo/base/fixtures/bakerydemo.json`
 
 Make a pull request to https://github.com/wagtail/bakerydemo

Vissa filer visades inte eftersom för många filer har ändrats