summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archaeological_operations/admin.py4
-rw-r--r--archaeological_operations/fixtures/periods-fr.json492
-rw-r--r--archaeological_operations/models.py1
3 files changed, 496 insertions, 1 deletions
diff --git a/archaeological_operations/admin.py b/archaeological_operations/admin.py
index 01b125e60..7a133486a 100644
--- a/archaeological_operations/admin.py
+++ b/archaeological_operations/admin.py
@@ -33,7 +33,9 @@ class AdministrativeActAdmin(HistorizedObjectAdmin):
admin.site.register(models.AdministrativeAct, AdministrativeActAdmin)
class PeriodAdmin(admin.ModelAdmin):
- list_display = ('label', 'start_date', 'end_date', 'parent', 'available')
+ list_display = ('label', 'start_date', 'end_date', 'parent', 'available',
+ 'order')
+ list_filter = ('parent',)
model = models.Period
admin.site.register(models.Period, PeriodAdmin)
diff --git a/archaeological_operations/fixtures/periods-fr.json b/archaeological_operations/fixtures/periods-fr.json
new file mode 100644
index 000000000..edb6401ff
--- /dev/null
+++ b/archaeological_operations/fixtures/periods-fr.json
@@ -0,0 +1,492 @@
+[
+ {
+ "pk": 35,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": null,
+ "end_date": 0,
+ "order": 0,
+ "label": "Non-renseign\u00e9",
+ "start_date": 0,
+ "txt_idx": "not_yet_documented"
+ }
+ },
+ {
+ "pk": 34,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": null,
+ "end_date": 0,
+ "order": 1000,
+ "label": "Epoque ind\u00e9termin\u00e9e",
+ "start_date": 0,
+ "txt_idx": "indetermined"
+ }
+ },
+ {
+ "pk": 31,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": null,
+ "end_date": 2011,
+ "order": 2000,
+ "label": "P\u00e9riode r\u00e9cente",
+ "start_date": 1492,
+ "txt_idx": "recent_times"
+ }
+ },
+ {
+ "pk": 33,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": 31,
+ "end_date": 2011,
+ "order": 2800,
+ "label": "Epoque contemporaine",
+ "start_date": 1815,
+ "txt_idx": "contemporan"
+ }
+ },
+ {
+ "pk": 32,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": 31,
+ "end_date": 1815,
+ "order": 2900,
+ "label": "Epoque moderne",
+ "start_date": 1492,
+ "txt_idx": "modern"
+ }
+ },
+ {
+ "pk": 27,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": null,
+ "end_date": 1492,
+ "order": 3000,
+ "label": "Moyen-\u00e2ge",
+ "start_date": 476,
+ "txt_idx": "middle_age"
+ }
+ },
+ {
+ "pk": 30,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": 27,
+ "end_date": 1492,
+ "order": 3700,
+ "label": "Bas moyen-\u00e2ge",
+ "start_date": 1204,
+ "txt_idx": "low_middle_age"
+ }
+ },
+ {
+ "pk": 29,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": 27,
+ "end_date": 1204,
+ "order": 3800,
+ "label": "Moyen-\u00e2ge classique",
+ "start_date": 987,
+ "txt_idx": "classic_middle_age"
+ }
+ },
+ {
+ "pk": 28,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": 27,
+ "end_date": 987,
+ "order": 3900,
+ "label": "Haut moyen-\u00e2ge",
+ "start_date": 476,
+ "txt_idx": "high_middle_age"
+ }
+ },
+ {
+ "pk": 23,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": null,
+ "end_date": 476,
+ "order": 4000,
+ "label": "Gallo-romain",
+ "start_date": -40,
+ "txt_idx": "gallo-roman"
+ }
+ },
+ {
+ "pk": 26,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": 23,
+ "end_date": 476,
+ "order": 4700,
+ "label": "Bas-empire",
+ "start_date": 192,
+ "txt_idx": "low_empire"
+ }
+ },
+ {
+ "pk": 25,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": 23,
+ "end_date": 192,
+ "order": 4800,
+ "label": "Haut-empire",
+ "start_date": -27,
+ "txt_idx": "high-empire"
+ }
+ },
+ {
+ "pk": 24,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": 23,
+ "end_date": -27,
+ "order": 4900,
+ "label": "R\u00e9publique",
+ "start_date": -40,
+ "txt_idx": "republic"
+ }
+ },
+ {
+ "pk": 15,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": null,
+ "end_date": -40,
+ "order": 5000,
+ "label": "Protohistoire",
+ "start_date": -2000,
+ "txt_idx": "protohistory"
+ }
+ },
+ {
+ "pk": 22,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": 17,
+ "end_date": -40,
+ "order": 5780,
+ "label": "Deuxi\u00e8me \u00c2ge du Fer",
+ "start_date": -500,
+ "txt_idx": "second_iron_age"
+ }
+ },
+ {
+ "pk": 21,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": 17,
+ "end_date": -450,
+ "order": 5790,
+ "label": "Premier \u00c2ge du Fer",
+ "start_date": -800,
+ "txt_idx": "first_iron_age"
+ }
+ },
+ {
+ "pk": 17,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": 15,
+ "end_date": -40,
+ "order": 5800,
+ "label": "\u00c2ge du Fer",
+ "start_date": -800,
+ "txt_idx": "iron_age"
+ }
+ },
+ {
+ "pk": 20,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": 16,
+ "end_date": -750,
+ "order": 5870,
+ "label": "\u00c2ge du Bronze final",
+ "start_date": -1200,
+ "txt_idx": "final_bronze_age"
+ }
+ },
+ {
+ "pk": 19,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": 16,
+ "end_date": -1200,
+ "order": 5880,
+ "label": "\u00c2ge du Bronze moyen",
+ "start_date": -1600,
+ "txt_idx": "middle_bronze_age"
+ }
+ },
+ {
+ "pk": 18,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": 16,
+ "end_date": -1600,
+ "order": 5890,
+ "label": "\u00c2ge du Bronze ancien",
+ "start_date": -2000,
+ "txt_idx": "old_bronze_age"
+ }
+ },
+ {
+ "pk": 16,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": 15,
+ "end_date": -750,
+ "order": 5900,
+ "label": "\u00c2ge du Bronze",
+ "start_date": -2000,
+ "txt_idx": "bronze_age"
+ }
+ },
+ {
+ "pk": 10,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": null,
+ "end_date": -2000,
+ "order": 6000,
+ "label": "N\u00e9olithique",
+ "start_date": -5500,
+ "txt_idx": "neolithic"
+ }
+ },
+ {
+ "pk": 14,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": 10,
+ "end_date": -2000,
+ "order": 6600,
+ "label": "N\u00e9olithique final",
+ "start_date": -2800,
+ "txt_idx": "final_neolithic"
+ }
+ },
+ {
+ "pk": 13,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": 10,
+ "end_date": -2500,
+ "order": 6700,
+ "label": "N\u00e9olithique r\u00e9cent",
+ "start_date": -3200,
+ "txt_idx": "recent_neolithic"
+ }
+ },
+ {
+ "pk": 12,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": 10,
+ "end_date": -300,
+ "order": 6800,
+ "label": "N\u00e9olithique moyen",
+ "start_date": -4500,
+ "txt_idx": "middle_neolithic"
+ }
+ },
+ {
+ "pk": 11,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": 10,
+ "end_date": -4500,
+ "order": 6900,
+ "label": "N\u00e9olithique ancien",
+ "start_date": -5500,
+ "txt_idx": "old_neolithic"
+ }
+ },
+ {
+ "pk": 6,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": null,
+ "end_date": -5000,
+ "order": 7000,
+ "label": "M\u00e9solithique",
+ "start_date": -10000,
+ "txt_idx": "mesolithic"
+ }
+ },
+ {
+ "pk": 9,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": 6,
+ "end_date": -5000,
+ "order": 7700,
+ "label": "M\u00e9solithique r\u00e9cent",
+ "start_date": -7000,
+ "txt_idx": "recent_mesolithic"
+ }
+ },
+ {
+ "pk": 8,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": false,
+ "parent": 6,
+ "end_date": 0,
+ "order": 7800,
+ "label": "M\u00e9solithique moyen",
+ "start_date": 0,
+ "txt_idx": "middle_mesolithic"
+ }
+ },
+ {
+ "pk": 7,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": 6,
+ "end_date": -7000,
+ "order": 7900,
+ "label": "M\u00e9solithique ancien",
+ "start_date": -10000,
+ "txt_idx": "old_mesolithic"
+ }
+ },
+ {
+ "pk": 1,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": null,
+ "end_date": -10000,
+ "order": 8000,
+ "label": "Pal\u00e9olithique",
+ "start_date": -450000,
+ "txt_idx": "paleolithic"
+ }
+ },
+ {
+ "pk": 5,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": 1,
+ "end_date": -10000,
+ "order": 8600,
+ "label": "Pal\u00e9olithique sup\u00e9rieur final",
+ "start_date": -12000,
+ "txt_idx": "final_paleolithic"
+ }
+ },
+ {
+ "pk": 4,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "",
+ "available": true,
+ "parent": 1,
+ "end_date": -12000,
+ "order": 8700,
+ "label": "Pal\u00e9olithique sup\u00e9rieur",
+ "start_date": -35000,
+ "txt_idx": "late_paleolithic"
+ }
+ },
+ {
+ "pk": 3,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "1200, '', , ),",
+ "available": true,
+ "parent": 1,
+ "end_date": -35000,
+ "order": 8800,
+ "label": "Pal\u00e9olithique moyen",
+ "start_date": -150000,
+ "txt_idx": "middle_paleolithic"
+ }
+ },
+ {
+ "pk": 2,
+ "model": "archaeological_operations.period",
+ "fields": {
+ "comment": "1100, 'Pal\u00e9olithique ancien', , )",
+ "available": true,
+ "parent": 1,
+ "end_date": -150000,
+ "order": 8900,
+ "label": "Pal\u00e9olithique ancien",
+ "start_date": -450000,
+ "txt_idx": "ancien_paleolithic"
+ }
+ }
+] \ No newline at end of file
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index 35dc8c20c..3924249c0 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -67,6 +67,7 @@ class Period(GeneralType) :
class Meta:
verbose_name = _(u"Type Period")
verbose_name_plural = _(u"Types Period")
+ ordering = ('order',)
def __unicode__(self):
return self.label