diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-05-14 16:22:06 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-05-14 16:22:06 +0200 |
| commit | efbf0103360839c97edec03ad9dc31145a1a0c53 (patch) | |
| tree | 37c879eff5536103bd969f75096e5781b906889e /archaeological_finds/models.py | |
| parent | a850add6d883d0a0daed8d1c74da5ace6572431e (diff) | |
| download | Ishtar-efbf0103360839c97edec03ad9dc31145a1a0c53.tar.bz2 Ishtar-efbf0103360839c97edec03ad9dc31145a1a0c53.zip | |
Finds: basket (db)
Diffstat (limited to 'archaeological_finds/models.py')
| -rw-r--r-- | archaeological_finds/models.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/archaeological_finds/models.py b/archaeological_finds/models.py index b52aabbf2..bd446235b 100644 --- a/archaeological_finds/models.py +++ b/archaeological_finds/models.py @@ -27,7 +27,7 @@ from django.utils.translation import ugettext_lazy as _, ugettext from ishtar_common.models import GeneralType, ImageModel, BaseHistorizedItem, \ ShortMenuItem, LightHistorizedItem, HistoricalRecords, OwnPerms, Source, \ - Person + Person, Basket from archaeological_operations.models import AdministrativeAct from archaeological_context_records.models import ContextRecord, Dating @@ -528,6 +528,10 @@ class Find(BaseHistorizedItem, ImageModel, OwnPerms, ShortMenuItem): # idx and idx['material_index__max'] + 1 or 1 +class FindBasket(Basket): + items = models.ManyToManyField(Find, blank=True, null=True) + + class FindSource(Source): SHOW_URL = 'show-findsource' |
