Skip to content

Working #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 286 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
286 commits
Select commit Hold shift + click to select a range
c3b896b
updates
johnmcewan Sep 13, 2024
2502cec
updates
johnmcewan Sep 13, 2024
f20061c
updates
johnmcewan Sep 13, 2024
ce3d365
updates
johnmcewan Sep 13, 2024
e2932dd
updates
johnmcewan Sep 14, 2024
f7b01cd
updates
johnmcewan Sep 14, 2024
9533362
updates
johnmcewan Sep 14, 2024
2c9c6d5
updates
johnmcewan Sep 14, 2024
35fc78c
updates
johnmcewan Sep 14, 2024
4e8cd90
update
johnmcewan Sep 14, 2024
535304c
updates
johnmcewan Sep 14, 2024
edec7f5
updates
johnmcewan Sep 15, 2024
f28020a
updates
johnmcewan Sep 15, 2024
b231e22
Update viewtools.py
johnmcewan Sep 15, 2024
08c6855
Update viewtools.py
johnmcewan Sep 15, 2024
3c97c15
updates
johnmcewan Sep 15, 2024
dc9ed95
updates
johnmcewan Sep 15, 2024
54acae5
updates
johnmcewan Sep 15, 2024
4ecedc0
updates
johnmcewan Sep 16, 2024
20ce515
updates
johnmcewan Sep 16, 2024
602fe71
updates
johnmcewan Sep 16, 2024
3bcd2e1
updates
johnmcewan Sep 16, 2024
fa7f85d
update
johnmcewan Sep 17, 2024
8364d04
updates
johnmcewan Sep 17, 2024
bdcb6ab
updates
johnmcewan Sep 17, 2024
7052f30
updates
johnmcewan Sep 17, 2024
7a5b00b
updates
johnmcewan Sep 17, 2024
ed62bf2
Update views.py
johnmcewan Sep 17, 2024
a444e25
updates
johnmcewan Sep 17, 2024
a3e4cc4
updates
johnmcewan Sep 18, 2024
11017c3
updates
johnmcewan Sep 18, 2024
1c43d7f
updates
johnmcewan Sep 19, 2024
e31ecd3
updates
johnmcewan Sep 19, 2024
7fa2188
updates
johnmcewan Sep 19, 2024
36da5d0
updates
johnmcewan Sep 19, 2024
43da10a
updates
johnmcewan Sep 19, 2024
4ab6f1e
updates
johnmcewan Sep 20, 2024
b418f8f
updates
johnmcewan Sep 20, 2024
5b8c0d3
Merge branch 'working' of https://github.com/johnmcewan/django_v4 int…
johnmcewan Sep 20, 2024
ba2450e
updates
johnmcewan Sep 20, 2024
05dd8f6
updates
johnmcewan Sep 20, 2024
bb7cc1b
Update views.py
johnmcewan Sep 20, 2024
d8de5b3
update
johnmcewan Sep 20, 2024
2dea616
update
johnmcewan Sep 20, 2024
d151ece
updates
johnmcewan Sep 20, 2024
66f7bb1
Update viewtools.py
johnmcewan Sep 20, 2024
9f9132c
updates
johnmcewan Sep 20, 2024
c399b95
updates
johnmcewan Sep 20, 2024
a01c251
updates
johnmcewan Sep 22, 2024
da00c13
updates
johnmcewan Sep 23, 2024
b35f63f
updates
johnmcewan Sep 23, 2024
5982386
updates
johnmcewan Sep 23, 2024
e663974
updates
johnmcewan Sep 24, 2024
9c657e0
updates
johnmcewan Sep 24, 2024
3cb66c4
updates
johnmcewan Sep 24, 2024
9437333
updates
johnmcewan Sep 24, 2024
d420bbb
updates
johnmcewan Sep 24, 2024
32a56af
updates
johnmcewan Sep 25, 2024
1f1f4d7
updates
johnmcewan Sep 25, 2024
078ca97
updates
johnmcewan Sep 25, 2024
fda767a
updates
johnmcewan Sep 25, 2024
3467778
updates
johnmcewan Sep 25, 2024
01e2928
updates
johnmcewan Sep 25, 2024
90d5c47
update
johnmcewan Sep 25, 2024
17ed1ae
updates
johnmcewan Sep 25, 2024
70de6f2
updates
johnmcewan Sep 25, 2024
98aa9c4
updates
johnmcewan Sep 26, 2024
46b6b43
updates
johnmcewan Sep 26, 2024
ffff050
updates
johnmcewan Sep 26, 2024
cb84e2f
updates
johnmcewan Sep 26, 2024
4e07606
updates
johnmcewan Sep 26, 2024
12e7d72
Update views.py
johnmcewan Sep 26, 2024
dce0c78
Update analysis_date.html
johnmcewan Sep 27, 2024
a157b0c
update
johnmcewan Sep 28, 2024
7f1e5fd
update
johnmcewan Sep 28, 2024
ee3336e
updates
johnmcewan Sep 30, 2024
fd40880
updates
johnmcewan Sep 30, 2024
9178e62
Update viewtools.py
johnmcewan Sep 30, 2024
9880e19
updates
johnmcewan Sep 30, 2024
d3fa3a2
updates
johnmcewan Sep 30, 2024
1614b78
Update views.py
johnmcewan Sep 30, 2024
bdbb685
update
johnmcewan Sep 30, 2024
382b262
updates
johnmcewan Sep 30, 2024
00fb219
Update views.py
johnmcewan Sep 30, 2024
65edd0a
updates
johnmcewan Sep 30, 2024
24de69f
updates
johnmcewan Sep 30, 2024
44d6d47
updates
johnmcewan Sep 30, 2024
14c0963
update
johnmcewan Oct 1, 2024
ee50e12
Update settings.py
johnmcewan Oct 2, 2024
fc796b7
updates
johnmcewan Oct 4, 2024
2041cad
updates
johnmcewan Oct 4, 2024
4ede96f
update
johnmcewan Oct 4, 2024
ba591c0
updates
johnmcewan Oct 5, 2024
540cce8
updates
johnmcewan Oct 5, 2024
301cde4
updates
johnmcewan Oct 5, 2024
0a942f2
updates
johnmcewan Oct 5, 2024
faaca53
updates
johnmcewan Oct 5, 2024
a671431
updates
johnmcewan Oct 6, 2024
1e3ed03
Update graph.html
johnmcewan Oct 6, 2024
d95a3a6
updates
johnmcewan Oct 6, 2024
34a00a3
updates
johnmcewan Oct 6, 2024
b7b5733
updates
johnmcewan Oct 8, 2024
5672650
updates
johnmcewan Oct 8, 2024
543b90e
updates
johnmcewan Oct 8, 2024
c884e6c
updates
johnmcewan Oct 9, 2024
4725b46
Update views.py
johnmcewan Oct 9, 2024
8393a13
Update views.py
johnmcewan Oct 9, 2024
e8036ff
Update views.py
johnmcewan Oct 10, 2024
21c2cc0
Update views.py
johnmcewan Oct 10, 2024
24c3988
Update views.py
johnmcewan Oct 11, 2024
beb8047
Update views.py
johnmcewan Oct 11, 2024
037f4a7
Update views.py
johnmcewan Oct 12, 2024
6835ae0
Update views.py
johnmcewan Oct 13, 2024
33b5e29
Update views.py
johnmcewan Oct 13, 2024
5aae979
update
johnmcewan Oct 13, 2024
b1e4bab
Update graph.html
johnmcewan Oct 13, 2024
68da8bb
Update graph.html
johnmcewan Oct 13, 2024
8db58f3
updates
johnmcewan Oct 14, 2024
5f1630c
Update views.py
johnmcewan Oct 14, 2024
b14d71e
updates
johnmcewan Oct 16, 2024
b611319
updates
johnmcewan Oct 16, 2024
8095db1
updates
johnmcewan Oct 16, 2024
7636453
updates
johnmcewan Oct 17, 2024
61c8ac5
Update urls.py
johnmcewan Oct 18, 2024
e557355
updates
johnmcewan Oct 19, 2024
285e230
updates
johnmcewan Oct 21, 2024
8d0b696
updates
johnmcewan Oct 21, 2024
c06e40a
updates
johnmcewan Oct 21, 2024
1082673
updates
johnmcewan Oct 21, 2024
08fdf05
updates
johnmcewan Oct 22, 2024
ae858d0
updates
johnmcewan Oct 22, 2024
f054d1e
updates
johnmcewan Oct 22, 2024
08349cb
updates
johnmcewan Oct 22, 2024
0caab66
updates
johnmcewan Oct 23, 2024
b873e0c
update
johnmcewan Oct 23, 2024
576589b
update
johnmcewan Oct 23, 2024
d83c2b0
updates
johnmcewan Oct 25, 2024
9e4ffda
Update views.py
johnmcewan Oct 26, 2024
b549502
Update views.py
johnmcewan Oct 28, 2024
f1c96b7
updates
johnmcewan Oct 28, 2024
888d4e7
updates
johnmcewan Oct 28, 2024
cf7b5a1
updates
johnmcewan Oct 28, 2024
99b5419
updates
johnmcewan Oct 29, 2024
5fa90ef
updates
johnmcewan Oct 29, 2024
800252a
updates
johnmcewan Oct 29, 2024
97a4c8a
updates
johnmcewan Oct 30, 2024
25031ac
updates
johnmcewan Oct 30, 2024
7d8c8f3
updates
johnmcewan Oct 31, 2024
8d43b40
updates
johnmcewan Oct 31, 2024
8f5aaa1
updates
johnmcewan Oct 31, 2024
5d0aa14
update
johnmcewan Oct 31, 2024
7035ddb
updates
johnmcewan Nov 1, 2024
2a5a083
updates
johnmcewan Nov 1, 2024
5c02b0d
updates
johnmcewan Nov 1, 2024
8000a1b
Update views.py
johnmcewan Nov 4, 2024
ab876e6
updates
johnmcewan Nov 5, 2024
3a794da
updates
johnmcewan Nov 5, 2024
68690a7
updates
johnmcewan Nov 6, 2024
c69ed1c
updates
johnmcewan Nov 6, 2024
a9c8131
updates
johnmcewan Nov 7, 2024
d8b77e9
updates
johnmcewan Nov 7, 2024
57595f6
updates
johnmcewan Nov 7, 2024
cb63b60
Update views.py
johnmcewan Nov 8, 2024
9bfe997
updates
johnmcewan Nov 8, 2024
84ab069
updates
johnmcewan Nov 9, 2024
685e47d
updates
johnmcewan Nov 9, 2024
bf42cd3
updates
johnmcewan Nov 9, 2024
ac08dc4
Update viewtools.py
johnmcewan Nov 9, 2024
95ad37c
updates
johnmcewan Nov 9, 2024
db4f60b
updates
johnmcewan Nov 9, 2024
9adae6f
updates
johnmcewan Nov 10, 2024
1511b66
Update viewtools.py
johnmcewan Nov 10, 2024
dc3c56a
update
johnmcewan Nov 10, 2024
01f54bf
updates
johnmcewan Nov 10, 2024
b6cb113
updates
johnmcewan Nov 11, 2024
f26bd78
updates
johnmcewan Nov 11, 2024
d0fe373
Update views.py
johnmcewan Nov 11, 2024
ae30d8f
updates
johnmcewan Nov 11, 2024
42ba68a
Update item.html
johnmcewan Nov 11, 2024
cc50d85
updates
johnmcewan Nov 11, 2024
4039e29
updates
johnmcewan Nov 11, 2024
89a60bd
updates
johnmcewan Nov 11, 2024
22ef968
updates
johnmcewan Nov 11, 2024
0163dc1
updates
johnmcewan Nov 12, 2024
c428fd0
updates
johnmcewan Nov 12, 2024
c1be99b
updates
johnmcewan Nov 12, 2024
2749335
updates
johnmcewan Nov 12, 2024
e3497a7
Update render.yaml
johnmcewan Nov 12, 2024
fc8c161
updates
johnmcewan Nov 12, 2024
ab28a8f
updates
johnmcewan Nov 12, 2024
365aee5
updates
johnmcewan Nov 12, 2024
bec332b
update
johnmcewan Nov 12, 2024
2965acb
updates
johnmcewan Nov 12, 2024
5818a1f
updates
johnmcewan Nov 12, 2024
774c409
updates
johnmcewan Nov 12, 2024
8695ae4
updates
johnmcewan Nov 13, 2024
3b1af0c
updates
johnmcewan Nov 13, 2024
c3ba33b
updates
johnmcewan Nov 13, 2024
5d5f121
updates
johnmcewan Nov 13, 2024
6099f40
updates
johnmcewan Nov 13, 2024
a1869b5
updates
johnmcewan Nov 13, 2024
6e363dc
Update render.yaml
johnmcewan Nov 13, 2024
786745a
updates
johnmcewan Nov 14, 2024
455138d
update
johnmcewan Nov 15, 2024
6823249
updates
johnmcewan Nov 15, 2024
36000d0
updates
johnmcewan Nov 16, 2024
50304e6
updates
johnmcewan Nov 22, 2024
b415ad9
updastyes
johnmcewan Nov 24, 2024
ddf3b0c
updates
johnmcewan Nov 24, 2024
e96f06e
updates
johnmcewan Nov 24, 2024
c46e852
Update viewtools.py
johnmcewan Nov 24, 2024
228c064
Update viewtools.py
johnmcewan Nov 25, 2024
c12cd73
Update viewtools.py
johnmcewan Nov 25, 2024
f05c22a
updates
johnmcewan Nov 27, 2024
e880aac
Update viewtools.py
johnmcewan Nov 27, 2024
758dc33
updates
johnmcewan Nov 29, 2024
0470f6e
updates
johnmcewan Nov 30, 2024
542454c
updates
johnmcewan Nov 30, 2024
266add9
updates
johnmcewan Nov 30, 2024
94451a7
updates
johnmcewan Nov 30, 2024
5042763
Update viewtools.py
johnmcewan Nov 30, 2024
409878f
Update viewtools.py
johnmcewan Nov 30, 2024
3dfe2ef
update
johnmcewan Dec 1, 2024
847c368
Update viewtools.py
johnmcewan Dec 1, 2024
3473b28
Update views.py
johnmcewan Dec 1, 2024
8d30944
updates
johnmcewan Dec 1, 2024
3e80e46
updates
johnmcewan Dec 1, 2024
e6b237d
updates
johnmcewan Dec 1, 2024
0ed94cf
Update item.html
johnmcewan Dec 1, 2024
d33b995
updates
johnmcewan Dec 1, 2024
c17a2be
updates
johnmcewan Dec 1, 2024
81ad316
updates
johnmcewan Dec 1, 2024
10ec818
updates
johnmcewan Dec 2, 2024
116b2e6
updates
johnmcewan Dec 2, 2024
211207a
updates
johnmcewan Dec 2, 2024
64c2407
updates
johnmcewan Dec 3, 2024
a8424fd
updates
johnmcewan Dec 4, 2024
fe0c6bb
updates
johnmcewan Dec 4, 2024
efbc4ef
updates
johnmcewan Dec 4, 2024
1ea23af
updates
johnmcewan Dec 5, 2024
408fb48
updates
johnmcewan Dec 9, 2024
e1c00de
updates
johnmcewan Dec 10, 2024
e7bf585
updates
johnmcewan Dec 11, 2024
ad64cf1
updates
johnmcewan Dec 11, 2024
5d0089b
updates
johnmcewan Dec 11, 2024
98b2a07
updates
johnmcewan Dec 12, 2024
ee21e00
updates
johnmcewan Dec 12, 2024
ec55fea
Update forms.py
johnmcewan Dec 12, 2024
3dc3eef
updates
johnmcewan Dec 12, 2024
5cbf87a
Update item.html
johnmcewan Dec 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
File renamed without changes.
3 changes: 3 additions & 0 deletions digisig/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
6 changes: 6 additions & 0 deletions digisig/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.apps import AppConfig


class DigisigConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'digisig'
193 changes: 193 additions & 0 deletions digisig/forms.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
from django import forms
from django.db.models import Count
# from django.db.models import Q

from .models import *

#Form for querying seal impressions
repositories_options = [('','None')]
series_options = [('', 'None')]
location_options = [('', 'None')]
nature_options = [('', 'None')]
representation_options = [('', 'None')]
timegroup_options = [('', 'None')]
shape_options = [('', 'None')]
classname_options = [('', 'None')]
group_options = [('', 'None')]

# for e in Repository.objects.order_by('repository_fulltitle'):
# repositories_options.append((e.fk_repository, e.repository_fulltitle))

# for e in Series.objects.order_by('series_name').distinct('series_name'):
# appendvalue = str(e.fk_repository) + " : " + e.series_name
# series_options.append((e.pk_series, appendvalue))

# for e in Printgroup.objects.order_by('printgroup_order'):
# group_options.append((e.pk_printgroup, e.printgroup))

# for e in Region.objects.order_by('region_label').distinct('region_label'):
# location_options.append((e.pk_region, e.region_label))

# for e in Nature.objects.order_by('nature_name').distinct('nature_name'):
# nature_options.append((e.pk_nature, e.nature_name))

# for e in RepresentationType.objects.order_by('representation_type').distinct('representation_type').exclude(pk_representation_type=5):
# representation_options.append((e.pk_representation_type, e.representation_type))

# for e in TimegroupC.objects.order_by('pk_timegroup_c'):
# timegroup_options.append((e.timegroup_c, e.timegroup_c_range))

# for e in Shape.objects.order_by('shape').distinct('shape'):
# shape_options.append((e.pk_shape, e.shape))

# for e in Terminology.objects.filter(term_type=1).order_by('term_name').distinct('term_name'):
# classname_options.append((e.id_term, e.term_name))

class ManifestationForm(forms.Form):
repository = forms.ChoiceField(choices=repositories_options, required=False)
series = forms.ChoiceField(choices=series_options, required=False, initial={'': 'None'})
location = forms.ChoiceField(choices=location_options, required=False, initial={'':'None'})
nature = forms.ChoiceField(label='Object', choices=nature_options, required=False)
representation = forms.ChoiceField(choices=representation_options, required=False, initial={'': 'None'})
timegroup = forms.ChoiceField(label='Period', choices=timegroup_options, required=False)
shape = forms.ChoiceField(choices=shape_options, required=False, initial={'': 'None'})
name = forms.CharField(label='Identifier', max_length=100, required=False, widget=forms.TextInput(attrs={'placeholder': 'Example: BA 867 box 21'}))
classname = forms.ChoiceField(label='Digisig Class', choices=classname_options, required=False)
pagination = forms.IntegerField(initial=1, widget=forms.HiddenInput)
group = forms.ChoiceField(choices=group_options, required=False, initial={'': 'None'})

class PageCycleForm(forms.Form):
pagination = forms.IntegerField(initial=1, widget=forms.HiddenInput)


#Form for collections, map and time analysis

collections_options = [('30000287', 'All Collections')]
graphchoices = [('1', 'Seal Descriptions'), ('2', 'Seal Impressions, Matrices and Casts')]
mapchoices = [('1', 'Places'), ('2', 'Counties'), ('3', 'Regions')]
sealtype_options = [('', 'None')]
period_options = [('', 'None')]
timegroup_options2 = []


# for e in Collection.objects.order_by('collection_shorttitle'):
# collections_options.append((e.id_collection, e.collection_shorttitle))

# for e in Sealtype.objects.order_by('sealtype_name'):
# sealtype_options.append((e.id_sealtype, e.sealtype_name))

# for e in TimegroupC.objects.order_by('pk_timegroup_c'):
# timegroup_options2.append((e.pk_timegroup_c, e.timegroup_c_range))

class CollectionForm(forms.Form):
collection = forms.ChoiceField(choices=collections_options, required=False)
#graphchoice = forms.ChoiceField(choices=graphchoices, required=False)
mapchoice = forms.ChoiceField(choices=mapchoices, required=False)
timechoice = forms.ChoiceField(choices=timegroup_options2, required=False)
# classname = forms.ChoiceField(label='Digisig Class', choices=classname_options, required=False)
sealtypechoice = forms.ChoiceField(choices=sealtype_options, required=False)


#Form for quering seal descriptions

# collections_options = [('30000287', 'All Collections')]

# for e in Collection.objects.order_by('collection_shorttitle').annotate(numdescriptions=Count('sealdescription')):

# if (e.numdescriptions > 0):
# collections_options.append((e.id_collection, e.collection_shorttitle))

class SealdescriptionForm(forms.Form):
pagination = forms.IntegerField(initial=1, widget=forms.HiddenInput)
collection = forms.ChoiceField(choices=collections_options, required=False)
cataloguecode = forms.CharField(label='Entry', max_length=100, required=False, widget=forms.TextInput(attrs={'placeholder': 'Example: P281'}))
#cataloguedescription = forms.CharField(label='Description', max_length=100, required=False)
cataloguemotif = forms.CharField(label='Motif Description', max_length=100, required=False, widget=forms.TextInput(attrs={'placeholder': 'Example: lily'}))
cataloguename = forms.CharField(label='Person/Entity', max_length=100, required=False, widget=forms.TextInput(attrs={'placeholder': 'Example: John son of Robert'}))


#Form for Actor search

Choices = [('0', 'None'), ('1', 'Individual'), ('2', 'Corporate')]

personclass_options = []
personorder_options = []

# for e in Groupclass.objects.order_by('groupclass'):
# personclass_options.append((e.fk_group_class, e.groupclass))

# for e in Grouporder.objects.order_by('grouporder'):
# personorder_options.append((e.fk_group_order, e.grouporder))

class PeopleForm(forms.Form):
name = forms.CharField(label='id_name', max_length=100, required=False, widget=forms.TextInput(attrs={'placeholder': 'Example: John'}))
group = forms.ChoiceField(choices=Choices, required=False)
pagination = forms.IntegerField(initial=1, widget=forms.HiddenInput)
personclass = forms.ChoiceField(choices=personclass_options, required=False)
personorder = forms.ChoiceField(choices=personorder_options, required=False)



#Nb: a search seal form uses a limited number of series and repositories -- but need all for this form
series_all_options = [('', 'None')]
repositories_all_options = [('', 'None')]

# for e in Series.objects.exclude(series_name__istartswith="z").order_by('fk_repository'):
# repository = e.fk_repository
# appendvalue = repository.repository + " : " + e.series_name
# series_all_options.append((e.pk_series, appendvalue))

# for e in Repository.objects.order_by('repository_fulltitle'):
# repositories_options.append((e.fk_repository, e.repository_fulltitle))

class ItemForm(forms.Form):
series = forms.ChoiceField(label='series', choices=series_all_options, required=False, initial={'': 'None'})
repository = forms.ChoiceField(label='repositories', choices=repositories_options, required=False, initial={'': 'None'})
shelfmark = forms.CharField(label='shelfmark', max_length=100, required=False, widget=forms.TextInput(attrs={'placeholder': 'Example: 867'}))
searchphrase = forms.CharField(label='searchphrase', max_length=100, required=False, widget=forms.TextInput(attrs={'placeholder': 'Example: Matilda'}))
pagination = forms.IntegerField(initial=1, widget=forms.HiddenInput)


# Form for place search
county_options = [('0', 'None')]
regionoptions = [('0', 'None')]

# for e in Region.objects.filter(location__isnull=False).filter(fk_locationtype=4).order_by('region_label').distinct('region_label'):
# county_options.append((e.pk_region, e.region_label))

# for e in Regiondisplay.objects.filter(region__location__isnull=False).order_by('regiondisplay_label').distinct('regiondisplay_label'):
# regionoptions.append((e.id_regiondisplay, e.regiondisplay_label))

class PlaceForm(forms.Form):
county = forms.ChoiceField(choices=county_options, required=False)
region = forms.ChoiceField(choices=regionoptions, required=False)
location_name = forms.CharField(label='location_name', max_length=100, required=False, widget=forms.TextInput(attrs={'placeholder': 'Example: Bruges'}))
pagination = forms.IntegerField(initial=1, widget=forms.HiddenInput)


# Form for Date search

class DateForm(forms.Form):
classname = forms.ChoiceField(label='Digisig Class', choices=classname_options, required=True)
shape = forms.ChoiceField(choices=shape_options, required=True, initial={'': 'None'})
face_vertical = forms.IntegerField(label='vertical',required=True)
face_horizontal = forms.IntegerField(label='horizontal',required=True)


#Form for ML date prediction analysis

classification_options = []
collection2_options = []

## this is a very bad way of selecting the classifications in use -- 2023_9_23
# for e in Classification.objects.exclude(class_name__startswith="z").exclude(class_name__startswith="Z").order_by('class_sortorder'):
# classification_options.append((e.id_class, e.class_name))

# for e in Collection.objects.filter(id_collection=30000047).order_by('id_collection'):
# collection2_options.append((e.id_collection, e.collection_title))
# #### forcing addition of Linenthal --- 2023_9_26
# collection2_options.append((30000337, 'Linenthal, Schoyen Collection'))

class MLpredictionForm(forms.Form):
classification = forms.ChoiceField(choices=classification_options, required=False)
collection2 = forms.ChoiceField(choices=collection2_options, required=False)
Empty file added digisig/migrations/__init__.py
Empty file.
Loading