Browse Source

added mail_state to all objects, added filters regarding sendmail.py

master
alpcentaur 1 year ago
parent
commit
d9db5238ea
125 changed files with 482 additions and 32 deletions
  1. +2
    -1
      .gitignore
  2. +0
    -0
      LICENSE
  3. +0
    -0
      README.md
  4. +0
    -0
      TODO
  5. +0
    -0
      foerderbarometer/__init__.py
  6. +0
    -0
      foerderbarometer/asgi.py
  7. +0
    -0
      foerderbarometer/settings.py_old
  8. +0
    -0
      foerderbarometer/settings_development.py
  9. +0
    -0
      foerderbarometer/settings_mariadb_development.py
  10. +2
    -2
      foerderbarometer/settings_production.py
  11. +0
    -0
      foerderbarometer/urls.py
  12. +0
    -0
      foerderbarometer/wsgi.py
  13. +0
    -0
      input/__init__.py
  14. +0
    -0
      input/admin.py
  15. +0
    -0
      input/apps.py
  16. +0
    -0
      input/fixtures/accounts.json
  17. +3
    -3
      input/forms.py
  18. +53
    -22
      input/management/commands/sendmails.py
  19. +0
    -0
      input/migrations/0001_initial.py
  20. +0
    -0
      input/migrations/0002_auto_20200922_1340.py
  21. +0
    -0
      input/migrations/0003_volonteer.py
  22. +0
    -0
      input/migrations/0004_project_contact.py
  23. +0
    -0
      input/migrations/0005_auto_20200930_1015.py
  24. +0
    -0
      input/migrations/0006_honorarycertificate.py
  25. +0
    -0
      input/migrations/0007_library.py
  26. +0
    -0
      input/migrations/0008_ifg.py
  27. +0
    -0
      input/migrations/0009_project_pid.py
  28. +0
    -0
      input/migrations/0010_auto_20201007_0732.py
  29. +0
    -0
      input/migrations/0011_auto_20201007_0743.py
  30. +0
    -0
      input/migrations/0012_auto_20201007_0754.py
  31. +0
    -0
      input/migrations/0013_library_type.py
  32. +0
    -0
      input/migrations/0014_auto_20201020_0714.py
  33. +0
    -0
      input/migrations/0015_auto_20201021_0721.py
  34. +0
    -0
      input/migrations/0016_project_account.py
  35. +0
    -0
      input/migrations/0017_auto_20201021_1145.py
  36. +0
    -0
      input/migrations/0018_auto_20201021_1147.py
  37. +0
    -0
      input/migrations/0019_auto_20201021_1148.py
  38. +0
    -0
      input/migrations/0020_project_project_end_mail.py
  39. +0
    -0
      input/migrations/0021_auto_20201022_0934.py
  40. +0
    -0
      input/migrations/0022_auto_20201022_1233.py
  41. +0
    -0
      input/migrations/0023_auto_20201022_1400.py
  42. +0
    -0
      input/migrations/0024_travel.py
  43. +0
    -0
      input/migrations/0025_auto_20201026_1048.py
  44. +0
    -0
      input/migrations/0026_auto_20201026_1214.py
  45. +0
    -0
      input/migrations/0027_businesscard_email_list.py
  46. +0
    -0
      input/migrations/0028_auto_20201027_1131.py
  47. +0
    -0
      input/migrations/0029_auto_20201027_1247.py
  48. +0
    -0
      input/migrations/0030_auto_20201027_1337.py
  49. +0
    -0
      input/migrations/0031_auto_20201028_1402.py
  50. +0
    -0
      input/migrations/0032_auto_20201029_1213.py
  51. +0
    -0
      input/migrations/0033_auto_20201029_1338.py
  52. +0
    -0
      input/migrations/0034_auto_20201102_0913.py
  53. +0
    -0
      input/migrations/0035_auto_20201102_0944.py
  54. +0
    -0
      input/migrations/0036_auto_20201102_1049.py
  55. +0
    -0
      input/migrations/0037_auto_20201102_1054.py
  56. +0
    -0
      input/migrations/0038_auto_20201102_1055.py
  57. +0
    -0
      input/migrations/0039_auto_20201102_1212.py
  58. +0
    -0
      input/migrations/0040_auto_20201102_1302.py
  59. +0
    -0
      input/migrations/0041_auto_20201102_1318.py
  60. +0
    -0
      input/migrations/0042_auto_20201102_1319.py
  61. +0
    -0
      input/migrations/0043_auto_20201102_1320.py
  62. +0
    -0
      input/migrations/0044_auto_20201103_1545.py
  63. +0
    -0
      input/migrations/0044_auto_20201116_1531.py
  64. +0
    -0
      input/migrations/0045_auto_20201116_1557.py
  65. +0
    -0
      input/migrations/0046_auto_20201117_1542.py
  66. +0
    -0
      input/migrations/0047_auto_20201117_1546.py
  67. +0
    -0
      input/migrations/0048_auto_20201118_1503.py
  68. +0
    -0
      input/migrations/0049_auto_20201118_1509.py
  69. +0
    -0
      input/migrations/0050_auto_20201118_1512.py
  70. +0
    -0
      input/migrations/0051_auto_20201118_1521.py
  71. +0
    -0
      input/migrations/0052_auto_20201118_1524.py
  72. +0
    -0
      input/migrations/0053_auto_20201118_1531.py
  73. +0
    -0
      input/migrations/0054_auto_20201118_1702.py
  74. +0
    -0
      input/migrations/0055_merge_20201118_1734.py
  75. +0
    -0
      input/migrations/0056_auto_20201217_1215.py
  76. +0
    -0
      input/migrations/0057_auto_20210104_0937.py
  77. +0
    -0
      input/migrations/0058_auto_20210412_0946.py
  78. +0
    -0
      input/migrations/0059_auto_20210412_1142.py
  79. +0
    -0
      input/migrations/0060_concreteextern.py
  80. +0
    -0
      input/migrations/0061_concretevolunteer.py
  81. +0
    -0
      input/migrations/0062_auto_20211103_1155.py
  82. +0
    -0
      input/migrations/0063_businesscard_url_of_pic_alter_ifg_notes_and_more.py
  83. +0
    -0
      input/migrations/0064_businesscard_send_data_to_print_literature_selfbuy_and_more.py
  84. +0
    -0
      input/migrations/0065_alter_literature_selfbuy_and_more.py
  85. +0
    -0
      input/migrations/0066_email_adult.py
  86. +0
    -0
      input/migrations/0067_travel_project_name_alter_library_type.py
  87. +0
    -0
      input/migrations/0068_travel_hotel.py
  88. +0
    -0
      input/migrations/0069_alter_travel_transport.py
  89. +0
    -0
      input/migrations/0070_alter_travel_project.py
  90. +0
    -0
      input/migrations/0071_honorarycertificate_intern_notes_travel_intern_notes.py
  91. +0
    -0
      input/migrations/0072_businesscard_intern_notes_email_intern_notes_and_more.py
  92. +0
    -0
      input/migrations/0073_account_intern_notes.py
  93. +0
    -0
      input/migrations/0074_project_intern_notes.py
  94. +0
    -0
      input/migrations/0075_literature_selfbuy_data.py
  95. +78
    -0
      input/migrations/0076_auto_20221129_1601.py
  96. +123
    -0
      input/migrations/0077_auto_20221129_1706.py
  97. +68
    -0
      input/migrations/0078_auto_20221129_1712.py
  98. +68
    -0
      input/migrations/0079_auto_20221129_2310.py
  99. +68
    -0
      input/migrations/0080_auto_20221129_2323.py
  100. +0
    -0
      input/migrations/__init__.py

+ 2
- 1
.gitignore View File

@ -1,7 +1,8 @@
# secret passwords and so
/secrets.json
/staticfiles
/foerderbarometer/settings.py
# /foerderbarometer/settings.py
/foerderbarometer/*settings*
/nohup.out
/logfile
*~

+ 0
- 0
LICENSE View File


+ 0
- 0
README.md View File


+ 0
- 0
TODO View File


+ 0
- 0
foerderbarometer/__init__.py View File


+ 0
- 0
foerderbarometer/asgi.py View File


+ 0
- 0
foerderbarometer/settings.py_old View File


+ 0
- 0
foerderbarometer/settings_development.py View File


+ 0
- 0
foerderbarometer/settings_mariadb_development.py View File


+ 2
- 2
foerderbarometer/settings_production.py View File

@ -111,8 +111,8 @@ WSGI_APPLICATION = 'foerderbarometer.wsgi.application'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'fdb',
'USER': 'fdb',
'NAME': 'fdbdevel',
'USER': 'fdbdevel',
'PASSWORD': get_secret('DATABASE_PASSWORD'),
'HOST': '10.0.6.7', # Or an IP Address that your database is hosted on
# 'PORT': '3306',

+ 0
- 0
foerderbarometer/urls.py View File


+ 0
- 0
foerderbarometer/wsgi.py View File


+ 0
- 0
input/__init__.py View File


+ 0
- 0
input/admin.py View File


+ 0
- 0
input/apps.py View File


+ 0
- 0
input/fixtures/accounts.json View File


+ 3
- 3
input/forms.py View File

@ -72,13 +72,13 @@ class TravelForm(FdbForm):
exclude = ('granted', 'granted_date', 'survey_mail_send', 'realname', 'email', 'survey_mail_date', 'project', 'request_url', 'payed_for_hotel_by', 'payed_for_travel_by', 'intern_notes' )
widgets = {'checkin': AdminDateWidget(),
'checkout': AdminDateWidget(),}
fields = ['project_name', 'transport', 'travelcost', 'checkin', 'checkout', 'hotel', 'notes']
fields = ['project_name', 'transport', 'travelcost', 'checkin', 'checkout', 'hotel', 'notes', 'mail_state']
class LibraryForm(FdbForm):
class Meta:
model = Library
fields = ['cost', 'library', 'duration', 'notes']
fields = ['cost', 'library', 'duration', 'notes', 'survey_mail_send']
exclude = ['intern_notes']
class HonoraryCertificateForm(FdbForm):
@ -139,7 +139,7 @@ class BusinessCardForm(CheckForm):
class Meta:
model = BusinessCard
exclude = ['intern_notes']
fields = ['project', 'data', 'variant', 'url_of_pic', 'sent_to']
fields = ['project', 'data', 'variant', 'url_of_pic', 'sent_to', 'mail_state']
class Media:
js = ('dropdown/js/base.js',)

+ 53
- 22
input/management/commands/sendmails.py View File

@ -39,11 +39,12 @@ class Command(BaseCommand):
html_mail_template = get_template('input/survey_mail.html')
try:
subject, from_email, to = 'Dein Feedback zur Förderung durch Wikimedia Deutschland', IF_EMAIL, email
text_content = txt_mail_template.render(context)
html_content = html_mail_template.render(context)
msg = EmailMultiAlternatives(subject, text_content, from_email, [to], bcc=[SURVEY_EMAIL])
msg.attach_alternative(html_content, "text/html")
msg.send()
text_content = txt_mail_template.render(context)
html_content = html_mail_template.render(context)
msg = EmailMultiAlternatives(subject, text_content, from_email, [to], bcc=[SURVEY_EMAIL])
msg.attach_alternative(html_content, "text/html")
msg.send()
#print('survey mail would have been send')
#survey_mail = EmailMessage('Dein Feedback zur Förderung durch Wikimedia Deutschland',
# mail_template.render(context),
@ -56,12 +57,19 @@ class Command(BaseCommand):
print(f'send surveylinkemail to {email}...')
''' the db entry mail_state was added. Useful when migrating databases. first delete the entry, then makemigrations
then migrate.. after that, recreate the entry with default END, after that makemigrations and migrate.
now all entries have the value END. after that rewrite the default to NONE in models.py, then makemigrations
and migrate again, to have NONE as default for all new queries. '''
def end_of_projects_reached(self):
''' end of project reached '''
# get all projects which ended
old = Project.objects.filter(end__lt = date.today())\
.exclude(end_mail_send = True)
.exclude(end_mail_send = True)\
.filter(mail_state = 'NONE')
txt_mail_template = get_template('input/if_end_of_project.txt')
html_mail_template = get_template('input/if_end_of_project.html')
@ -69,6 +77,7 @@ class Command(BaseCommand):
for project in old:
context = {'project': project}
context['URLPREFIX'] = settings.URLPREFIX
try:
subject, from_email, to = 'Projektende erreicht', IF_EMAIL, IF_EMAIL
text_content = txt_mail_template.render(context)
@ -76,6 +85,7 @@ class Command(BaseCommand):
msg = EmailMultiAlternatives(subject, text_content, from_email, [to])
msg.attach_alternative(html_content, "text/html")
msg.send()
#print('end of project mail would have been sent')
#send_mail('Projektende erreicht',
# mail_template.render(context),
@ -83,7 +93,11 @@ class Command(BaseCommand):
# [IF_EMAIL],
# fail_silently=False)
project.end_mail_send = True
project.save()
project.mail_state = 'INF'
try:
project.save()
except:
print( 'For project', project, 'there is possibly no project.start (', project.start, ') class')
except BadHeaderError:
self.stdout.write(self.style.ERROR('Invalid header found.'))
@ -94,8 +108,8 @@ class Command(BaseCommand):
# get all projects where end was reached already, and send mails for the ones already set to status "ended" by the admins
approved_end = Project.objects.filter(status = 'END')\
.exclude(end_mail_send = False)
print(approved_end)
.exclude(end_mail_send = False)\
.filter(mail_state = 'INF')
txt_mail_template = get_template('input/if_end_of_project_approved.txt')
html_mail_template = get_template('input/if_end_of_project_approved.html')
@ -106,6 +120,8 @@ class Command(BaseCommand):
for project in approved_end:
context = {'project': project}
context['URLPREFIX'] = settings.URLPREFIX
try:
subject, from_email, to = 'Projektende erreicht', IF_EMAIL, project.email
text_content = txt_mail_template.render(context)
@ -113,14 +129,15 @@ class Command(BaseCommand):
msg = EmailMultiAlternatives(subject, text_content, from_email, [to])
msg.attach_alternative(html_content, "text/html")
msg.send()
#print('if and of project approved mail would have been sent')
inform_subject, inform_from_email, inform_to = Projektorganisator*in wurde informiert', IF_EMAIL, IF_EMAIL
inform_subject, inform_from_email, inform_to = 'Projektorganisator*in wurde informiert', IF_EMAIL, IF_EMAIL
inform_text_content = txt_informMail_template.render(context)
inform_html_content = html_informMail_template.render(context)
inform_msg = EmailMultiAlternatives(inform_subject, inform_text_content, inform_from_email, [inform_to])
inform_msg.attach_alternative(html_content, "text/html")
inform_msg.send()
#print('if end of project orginformed mail would have been sent')
#send_mail('Projektende erreicht',
# mail_template.render(context),
@ -134,7 +151,11 @@ class Command(BaseCommand):
# fail_silently=False)
project.end_mail_send = True
project.save()
project.mail_state = 'END'
try:
project.save()
except:
print( 'For project', project, 'there is possibly no project.start (', project.start, ') class')
except BadHeaderError:
self.stdout.write(self.style.ERROR('Invalid header found.'))
@ -145,7 +166,8 @@ class Command(BaseCommand):
# get all projects where end was reached already, and send mails for the ones where status was put to NOT by admins
approved_notHappened = Project.objects.filter(status = 'NOT')\
.exclude(end_mail_send = False)
.exclude(end_mail_send = False)\
.filter(mail_state = 'INF')
html_mail_template = get_template('input/if_not_of_project_approved.html')
txt_mail_template = get_template('input/if_not_of_project_approved.txt')
@ -164,7 +186,7 @@ class Command(BaseCommand):
msg = EmailMultiAlternatives(subject, text_content, from_email, [to])
msg.attach_alternative(html_content, "text/html")
msg.send()
#print('if not of project approved end mail would have been sent')
#send_mail('Projektende erreicht',
@ -173,12 +195,13 @@ class Command(BaseCommand):
# [project.email],
# fail_silently=False)
inform_subject, inform_from_email, inform_to = Projektorganisator*in wurde informiert', IF_EMAIL, IF_EMAIL
inform_subject, inform_from_email, inform_to = 'Projektorganisator*in wurde informiert', IF_EMAIL, IF_EMAIL
inform_text_content = txt_informMail_template.render(context)
inform_html_content = html_informMail_template.render(context)
inform_msg = EmailMultiAlternatives(inform_subject, inform_text_content, inform_from_email, [inform_to])
inform_msg.attach_alternative(html_content, "text/html")
inform_msg.send()
#print('if not of project approved end mail orginformed would have been sent')
#send_mail('Projektorganisator*in wurde informiert',
# informMail_template.render(context),
@ -187,6 +210,7 @@ class Command(BaseCommand):
# fail_silently=False)
project.end_mail_send = True
project.mail_state = 'END'
project.save()
except BadHeaderError:
self.stdout.write(self.style.ERROR('Invalid header found.'))
@ -221,7 +245,8 @@ class Command(BaseCommand):
supported = Library.objects.filter(granted=True)\
.filter(granted_date__lt = date.today() - timedelta(days=14))\
.exclude(survey_mail_send=True)
.exclude(survey_mail_send=True)\
.exclude(mail_state = 'END')
self.surveymails_to_object(supported,name='library')
def surveymails_to_hon(self):
@ -229,7 +254,8 @@ class Command(BaseCommand):
supported = HonoraryCertificate.objects.filter(granted=True)\
.filter(granted_date__lt = date.today() - timedelta(days=14))\
.exclude(survey_mail_send=True)
.exclude(survey_mail_send=True)\
.exclude(mail_state = 'END')
self.surveymails_to_object(supported, type='HON', name='project')
def surveymails_to_ifg(self):
@ -237,7 +263,8 @@ class Command(BaseCommand):
supported = IFG.objects.filter(granted=True)\
.filter(granted_date__lt = date.today() - timedelta(days=14))\
.exclude(survey_mail_send=True)
.exclude(survey_mail_send=True)\
.exclude(mail_state = 'END')
self.surveymails_to_object(supported, type='IFG', name='url')
def surveymails_to_lit(self):
@ -245,14 +272,16 @@ class Command(BaseCommand):
supported = Literature.objects.filter(granted=True)\
.filter(granted_date__lt = date.today() - timedelta(days=14))\
.exclude(survey_mail_send=True)
.exclude(survey_mail_send=True)\
.exclude(mail_state = 'END')
self.surveymails_to_object(supported, type='LIT', name='info')
def surveymails_to_project(self):
'''send survey link 4 weeks after end of project reached'''
supported = Project.objects.filter(granted=True)\
.filter(end__lt = date.today() - timedelta(days=28))\
.exclude(survey_mail_send=True)
.exclude(survey_mail_send=True)\
.exclude(mail_state = 'END')
self.surveymails_to_object(supported, type='PRO', name='name')
def surveymails_to_travel(self):
@ -260,7 +289,8 @@ class Command(BaseCommand):
supported = Travel.objects.filter(project__granted=True)\
.filter(project__end__lt = date.today() - timedelta(days=21))\
.exclude(survey_mail_send=True)
.exclude(survey_mail_send=True)\
.exclude(mail_state = 'END')
self.surveymails_to_object(supported, type='TRAV', name='project')
def surveymails_to_mail_vis_lis(self):
@ -273,7 +303,8 @@ class Command(BaseCommand):
# get class via string
supported = getattr(sys.modules[__name__], c).objects.filter(granted=True)\
.filter(granted_date__lt = lastdate)\
.exclude(survey_mail_send=True)
.exclude(survey_mail_send=True)\
.exclude(mail_state = 'END')
self.surveymails_to_object(supported, type=typefield[count])
count += 1

+ 0
- 0
input/migrations/0001_initial.py View File


+ 0
- 0
input/migrations/0002_auto_20200922_1340.py View File


+ 0
- 0
input/migrations/0003_volonteer.py View File


+ 0
- 0
input/migrations/0004_project_contact.py View File


+ 0
- 0
input/migrations/0005_auto_20200930_1015.py View File


+ 0
- 0
input/migrations/0006_honorarycertificate.py View File


+ 0
- 0
input/migrations/0007_library.py View File


+ 0
- 0
input/migrations/0008_ifg.py View File


+ 0
- 0
input/migrations/0009_project_pid.py View File


+ 0
- 0
input/migrations/0010_auto_20201007_0732.py View File


+ 0
- 0
input/migrations/0011_auto_20201007_0743.py View File


+ 0
- 0
input/migrations/0012_auto_20201007_0754.py View File


+ 0
- 0
input/migrations/0013_library_type.py View File


+ 0
- 0
input/migrations/0014_auto_20201020_0714.py View File


+ 0
- 0
input/migrations/0015_auto_20201021_0721.py View File


+ 0
- 0
input/migrations/0016_project_account.py View File


+ 0
- 0
input/migrations/0017_auto_20201021_1145.py View File


+ 0
- 0
input/migrations/0018_auto_20201021_1147.py View File


+ 0
- 0
input/migrations/0019_auto_20201021_1148.py View File


+ 0
- 0
input/migrations/0020_project_project_end_mail.py View File


+ 0
- 0
input/migrations/0021_auto_20201022_0934.py View File


+ 0
- 0
input/migrations/0022_auto_20201022_1233.py View File


+ 0
- 0
input/migrations/0023_auto_20201022_1400.py View File


+ 0
- 0
input/migrations/0024_travel.py View File


+ 0
- 0
input/migrations/0025_auto_20201026_1048.py View File


+ 0
- 0
input/migrations/0026_auto_20201026_1214.py View File


+ 0
- 0
input/migrations/0027_businesscard_email_list.py View File


+ 0
- 0
input/migrations/0028_auto_20201027_1131.py View File


+ 0
- 0
input/migrations/0029_auto_20201027_1247.py View File


+ 0
- 0
input/migrations/0030_auto_20201027_1337.py View File


+ 0
- 0
input/migrations/0031_auto_20201028_1402.py View File


+ 0
- 0
input/migrations/0032_auto_20201029_1213.py View File


+ 0
- 0
input/migrations/0033_auto_20201029_1338.py View File


+ 0
- 0
input/migrations/0034_auto_20201102_0913.py View File


+ 0
- 0
input/migrations/0035_auto_20201102_0944.py View File


+ 0
- 0
input/migrations/0036_auto_20201102_1049.py View File


+ 0
- 0
input/migrations/0037_auto_20201102_1054.py View File


+ 0
- 0
input/migrations/0038_auto_20201102_1055.py View File


+ 0
- 0
input/migrations/0039_auto_20201102_1212.py View File


+ 0
- 0
input/migrations/0040_auto_20201102_1302.py View File


+ 0
- 0
input/migrations/0041_auto_20201102_1318.py View File


+ 0
- 0
input/migrations/0042_auto_20201102_1319.py View File


+ 0
- 0
input/migrations/0043_auto_20201102_1320.py View File


+ 0
- 0
input/migrations/0044_auto_20201103_1545.py View File


+ 0
- 0
input/migrations/0044_auto_20201116_1531.py View File


+ 0
- 0
input/migrations/0045_auto_20201116_1557.py View File


+ 0
- 0
input/migrations/0046_auto_20201117_1542.py View File


+ 0
- 0
input/migrations/0047_auto_20201117_1546.py View File


+ 0
- 0
input/migrations/0048_auto_20201118_1503.py View File


+ 0
- 0
input/migrations/0049_auto_20201118_1509.py View File


+ 0
- 0
input/migrations/0050_auto_20201118_1512.py View File


+ 0
- 0
input/migrations/0051_auto_20201118_1521.py View File


+ 0
- 0
input/migrations/0052_auto_20201118_1524.py View File


+ 0
- 0
input/migrations/0053_auto_20201118_1531.py View File


+ 0
- 0
input/migrations/0054_auto_20201118_1702.py View File


+ 0
- 0
input/migrations/0055_merge_20201118_1734.py View File


+ 0
- 0
input/migrations/0056_auto_20201217_1215.py View File


+ 0
- 0
input/migrations/0057_auto_20210104_0937.py View File


+ 0
- 0
input/migrations/0058_auto_20210412_0946.py View File


+ 0
- 0
input/migrations/0059_auto_20210412_1142.py View File


+ 0
- 0
input/migrations/0060_concreteextern.py View File


+ 0
- 0
input/migrations/0061_concretevolunteer.py View File


+ 0
- 0
input/migrations/0062_auto_20211103_1155.py View File


+ 0
- 0
input/migrations/0063_businesscard_url_of_pic_alter_ifg_notes_and_more.py View File


+ 0
- 0
input/migrations/0064_businesscard_send_data_to_print_literature_selfbuy_and_more.py View File


+ 0
- 0
input/migrations/0065_alter_literature_selfbuy_and_more.py View File


+ 0
- 0
input/migrations/0066_email_adult.py View File


+ 0
- 0
input/migrations/0067_travel_project_name_alter_library_type.py View File


+ 0
- 0
input/migrations/0068_travel_hotel.py View File


+ 0
- 0
input/migrations/0069_alter_travel_transport.py View File


+ 0
- 0
input/migrations/0070_alter_travel_project.py View File


+ 0
- 0
input/migrations/0071_honorarycertificate_intern_notes_travel_intern_notes.py View File


+ 0
- 0
input/migrations/0072_businesscard_intern_notes_email_intern_notes_and_more.py View File


+ 0
- 0
input/migrations/0073_account_intern_notes.py View File


+ 0
- 0
input/migrations/0074_project_intern_notes.py View File


+ 0
- 0
input/migrations/0075_literature_selfbuy_data.py View File


+ 78
- 0
input/migrations/0076_auto_20221129_1601.py View File

@ -0,0 +1,78 @@
# Generated by Django 3.1.2 on 2022-11-29 16:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('input', '0075_literature_selfbuy_data'),
]
operations = [
migrations.AlterField(
model_name='businesscard',
name='survey_mail_send',
field=models.BooleanField(default=True, verbose_name='Keine Umfragemail schicken'),
),
migrations.AlterField(
model_name='concreteextern',
name='survey_mail_send',
field=models.BooleanField(default=True, verbose_name='Keine Umfragemail schicken'),
),
migrations.AlterField(
model_name='concretevolunteer',
name='survey_mail_send',
field=models.BooleanField(default=True, verbose_name='Keine Umfragemail schicken'),
),
migrations.AlterField(
model_name='email',
name='survey_mail_send',
field=models.BooleanField(default=True, verbose_name='Keine Umfragemail schicken'),
),
migrations.AlterField(
model_name='honorarycertificate',
name='survey_mail_send',
field=models.BooleanField(default=True, verbose_name='Keine Umfragemail schicken'),
),
migrations.AlterField(
model_name='ifg',
name='survey_mail_send',
field=models.BooleanField(default=True, verbose_name='Keine Umfragemail schicken'),
),
migrations.AlterField(
model_name='library',
name='survey_mail_send',
field=models.BooleanField(default=True, verbose_name='Keine Umfragemail schicken'),
),
migrations.AlterField(
model_name='list',
name='survey_mail_send',
field=models.BooleanField(default=True, verbose_name='Keine Umfragemail schicken'),
),
migrations.AlterField(
model_name='literature',
name='selfbuy_data',
field=models.TextField(default='', help_text='Bitte gib hier alle persönlichen Daten an, die wir benötigen, um das Werk<br> für dich zu kaufen und es dir anschließend zu schicken (z.B. Vorname Nachname, Anschrift, <br> Telefonnummer, E-Mail-Adresse usw.). Trenne die einzelnen Angaben durch Zeilenumbrüche. <br> Hinweis: Telefonnummern bilden wir üblicherweise im internationalen Format gemäß<br> DIN 5008 ab. Als anzugebende E-Mail-Adresse empfehlen wir dir eine Wikimedia-Projekt-<br> Adresse, die du ebenfalls beantragen kannst, sofern du nicht bereits eine besitzt.', max_length=1000, verbose_name='Persönliche Daten sowie Adresse'),
),
migrations.AlterField(
model_name='literature',
name='selfbuy_give_data',
field=models.BooleanField(help_text='Weitergabe meiner Daten (Name, Postadresse) an den von mir angegebenen Anbieter/Dienstleister.', verbose_name='Datenweitergabe erlauben'),
),
migrations.AlterField(
model_name='literature',
name='survey_mail_send',
field=models.BooleanField(default=True, verbose_name='Keine Umfragemail schicken'),
),
migrations.AlterField(
model_name='project',
name='survey_mail_send',
field=models.BooleanField(default=True, verbose_name='Keine Umfragemail schicken'),
),
migrations.AlterField(
model_name='travel',
name='survey_mail_send',
field=models.BooleanField(default=True, verbose_name='Keine Umfragemail schicken'),
),
]

+ 123
- 0
input/migrations/0077_auto_20221129_1706.py View File

@ -0,0 +1,123 @@
# Generated by Django 3.1.2 on 2022-11-29 17:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('input', '0076_auto_20221129_1601'),
]
operations = [
migrations.AddField(
model_name='businesscard',
name='mailState',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('SURVEY', 'die Survey Mail wurde bereits versendet'), ('END', 'alle automatischen Mails wurden bereits versendet')], default='END', max_length=6),
),
migrations.AddField(
model_name='concreteextern',
name='mailState',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('SURVEY', 'die Survey Mail wurde bereits versendet'), ('END', 'alle automatischen Mails wurden bereits versendet')], default='END', max_length=6),
),
migrations.AddField(
model_name='concretevolunteer',
name='mailState',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('SURVEY', 'die Survey Mail wurde bereits versendet'), ('END', 'alle automatischen Mails wurden bereits versendet')], default='END', max_length=6),
),
migrations.AddField(
model_name='email',
name='mailState',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('SURVEY', 'die Survey Mail wurde bereits versendet'), ('END', 'alle automatischen Mails wurden bereits versendet')], default='END', max_length=6),
),
migrations.AddField(
model_name='honorarycertificate',
name='mailState',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('SURVEY', 'die Survey Mail wurde bereits versendet'), ('END', 'alle automatischen Mails wurden bereits versendet')], default='END', max_length=6),
),
migrations.AddField(
model_name='ifg',
name='mailState',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('SURVEY', 'die Survey Mail wurde bereits versendet'), ('END', 'alle automatischen Mails wurden bereits versendet')], default='END', max_length=6),
),
migrations.AddField(
model_name='library',
name='mailState',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('SURVEY', 'die Survey Mail wurde bereits versendet'), ('END', 'alle automatischen Mails wurden bereits versendet')], default='END', max_length=6),
),
migrations.AddField(
model_name='list',
name='mailState',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('SURVEY', 'die Survey Mail wurde bereits versendet'), ('END', 'alle automatischen Mails wurden bereits versendet')], default='END', max_length=6),
),
migrations.AddField(
model_name='literature',
name='mailState',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('SURVEY', 'die Survey Mail wurde bereits versendet'), ('END', 'alle automatischen Mails wurden bereits versendet')], default='END', max_length=6),
),
migrations.AddField(
model_name='project',
name='mailState',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('SURVEY', 'die Survey Mail wurde bereits versendet'), ('END', 'alle automatischen Mails wurden bereits versendet')], default='END', max_length=6),
),
migrations.AddField(
model_name='travel',
name='mailState',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('SURVEY', 'die Survey Mail wurde bereits versendet'), ('END', 'alle automatischen Mails wurden bereits versendet')], default='END', max_length=6),
),
migrations.AlterField(
model_name='businesscard',
name='survey_mail_send',
field=models.BooleanField(default=False, verbose_name='Keine Umfragemail schicken'),
),
migrations.AlterField(
model_name='concreteextern',
name='survey_mail_send',
field=models.BooleanField(default=False, verbose_name='Keine Umfragemail schicken'),
),
migrations.AlterField(
model_name='concretevolunteer',
name='survey_mail_send',
field=models.BooleanField(default=False, verbose_name='Keine Umfragemail schicken'),
),
migrations.AlterField(
model_name='email',
name='survey_mail_send',
field=models.BooleanField(default=False, verbose_name='Keine Umfragemail schicken'),
),
migrations.AlterField(
model_name='honorarycertificate',
name='survey_mail_send',
field=models.BooleanField(default=False, verbose_name='Keine Umfragemail schicken'),
),
migrations.AlterField(
model_name='ifg',
name='survey_mail_send',
field=models.BooleanField(default=False, verbose_name='Keine Umfragemail schicken'),
),
migrations.AlterField(
model_name='library',
name='survey_mail_send',
field=models.BooleanField(default=False, verbose_name='Keine Umfragemail schicken'),
),
migrations.AlterField(
model_name='list',
name='survey_mail_send',
field=models.BooleanField(default=False, verbose_name='Keine Umfragemail schicken'),
),
migrations.AlterField(
model_name='literature',
name='survey_mail_send',
field=models.BooleanField(default=False, verbose_name='Keine Umfragemail schicken'),
),
migrations.AlterField(
model_name='project',
name='survey_mail_send',
field=models.BooleanField(default=False, verbose_name='Keine Umfragemail schicken'),
),
migrations.AlterField(
model_name='travel',
name='survey_mail_send',
field=models.BooleanField(default=False, verbose_name='Keine Umfragemail schicken'),
),
]

+ 68
- 0
input/migrations/0078_auto_20221129_1712.py View File

@ -0,0 +1,68 @@
# Generated by Django 3.1.2 on 2022-11-29 17:12
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('input', '0077_auto_20221129_1706'),
]
operations = [
migrations.RenameField(
model_name='businesscard',
old_name='mailState',
new_name='mail_state',
),
migrations.RenameField(
model_name='concreteextern',
old_name='mailState',
new_name='mail_state',
),
migrations.RenameField(
model_name='concretevolunteer',
old_name='mailState',
new_name='mail_state',
),
migrations.RenameField(
model_name='email',
old_name='mailState',
new_name='mail_state',
),
migrations.RenameField(
model_name='honorarycertificate',
old_name='mailState',
new_name='mail_state',
),
migrations.RenameField(
model_name='ifg',
old_name='mailState',
new_name='mail_state',
),
migrations.RenameField(
model_name='library',
old_name='mailState',
new_name='mail_state',
),
migrations.RenameField(
model_name='list',
old_name='mailState',
new_name='mail_state',
),
migrations.RenameField(
model_name='literature',
old_name='mailState',
new_name='mail_state',
),
migrations.RenameField(
model_name='project',
old_name='mailState',
new_name='mail_state',
),
migrations.RenameField(
model_name='travel',
old_name='mailState',
new_name='mail_state',
),
]

+ 68
- 0
input/migrations/0079_auto_20221129_2310.py View File

@ -0,0 +1,68 @@
# Generated by Django 3.1.2 on 2022-11-29 23:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('input', '0078_auto_20221129_1712'),
]
operations = [
migrations.AlterField(
model_name='businesscard',
name='mail_state',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('END', 'die Benachrichtigung End-Mail wurde bereits versendet'), ('APPR', 'alle automatischen Mails, auch surveyMail, wurden bereits versendet')], default='APPR', max_length=6),
),
migrations.AlterField(
model_name='concreteextern',
name='mail_state',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('END', 'die Benachrichtigung End-Mail wurde bereits versendet'), ('APPR', 'alle automatischen Mails, auch surveyMail, wurden bereits versendet')], default='APPR', max_length=6),
),
migrations.AlterField(
model_name='concretevolunteer',
name='mail_state',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('END', 'die Benachrichtigung End-Mail wurde bereits versendet'), ('APPR', 'alle automatischen Mails, auch surveyMail, wurden bereits versendet')], default='APPR', max_length=6),
),
migrations.AlterField(
model_name='email',
name='mail_state',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('END', 'die Benachrichtigung End-Mail wurde bereits versendet'), ('APPR', 'alle automatischen Mails, auch surveyMail, wurden bereits versendet')], default='APPR', max_length=6),
),
migrations.AlterField(
model_name='honorarycertificate',
name='mail_state',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('END', 'die Benachrichtigung End-Mail wurde bereits versendet'), ('APPR', 'alle automatischen Mails, auch surveyMail, wurden bereits versendet')], default='APPR', max_length=6),
),
migrations.AlterField(
model_name='ifg',
name='mail_state',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('END', 'die Benachrichtigung End-Mail wurde bereits versendet'), ('APPR', 'alle automatischen Mails, auch surveyMail, wurden bereits versendet')], default='APPR', max_length=6),
),
migrations.AlterField(
model_name='library',
name='mail_state',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('END', 'die Benachrichtigung End-Mail wurde bereits versendet'), ('APPR', 'alle automatischen Mails, auch surveyMail, wurden bereits versendet')], default='APPR', max_length=6),
),
migrations.AlterField(
model_name='list',
name='mail_state',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('END', 'die Benachrichtigung End-Mail wurde bereits versendet'), ('APPR', 'alle automatischen Mails, auch surveyMail, wurden bereits versendet')], default='APPR', max_length=6),
),
migrations.AlterField(
model_name='literature',
name='mail_state',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('END', 'die Benachrichtigung End-Mail wurde bereits versendet'), ('APPR', 'alle automatischen Mails, auch surveyMail, wurden bereits versendet')], default='APPR', max_length=6),
),
migrations.AlterField(
model_name='project',
name='mail_state',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('END', 'die Benachrichtigung End-Mail wurde bereits versendet'), ('APPR', 'alle automatischen Mails, auch surveyMail, wurden bereits versendet')], default='APPR', max_length=6),
),
migrations.AlterField(
model_name='travel',
name='mail_state',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('END', 'die Benachrichtigung End-Mail wurde bereits versendet'), ('APPR', 'alle automatischen Mails, auch surveyMail, wurden bereits versendet')], default='APPR', max_length=6),
),
]

+ 68
- 0
input/migrations/0080_auto_20221129_2323.py View File

@ -0,0 +1,68 @@
# Generated by Django 3.1.2 on 2022-11-29 23:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('input', '0079_auto_20221129_2310'),
]
operations = [
migrations.AlterField(
model_name='businesscard',
name='mail_state',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('INF', 'die Benachrichtigung End-Mail wurde bereits versendet'), ('END', 'alle automatischen Mails, auch surveyMail, wurden bereits versendet')], default='NONE', max_length=6),
),
migrations.AlterField(
model_name='concreteextern',
name='mail_state',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('INF', 'die Benachrichtigung End-Mail wurde bereits versendet'), ('END', 'alle automatischen Mails, auch surveyMail, wurden bereits versendet')], default='NONE', max_length=6),
),
migrations.AlterField(
model_name='concretevolunteer',
name='mail_state',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('INF', 'die Benachrichtigung End-Mail wurde bereits versendet'), ('END', 'alle automatischen Mails, auch surveyMail, wurden bereits versendet')], default='NONE', max_length=6),
),
migrations.AlterField(
model_name='email',
name='mail_state',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('INF', 'die Benachrichtigung End-Mail wurde bereits versendet'), ('END', 'alle automatischen Mails, auch surveyMail, wurden bereits versendet')], default='NONE', max_length=6),
),
migrations.AlterField(
model_name='honorarycertificate',
name='mail_state',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('INF', 'die Benachrichtigung End-Mail wurde bereits versendet'), ('END', 'alle automatischen Mails, auch surveyMail, wurden bereits versendet')], default='NONE', max_length=6),
),
migrations.AlterField(
model_name='ifg',
name='mail_state',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('INF', 'die Benachrichtigung End-Mail wurde bereits versendet'), ('END', 'alle automatischen Mails, auch surveyMail, wurden bereits versendet')], default='NONE', max_length=6),
),
migrations.AlterField(
model_name='library',
name='mail_state',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('INF', 'die Benachrichtigung End-Mail wurde bereits versendet'), ('END', 'alle automatischen Mails, auch surveyMail, wurden bereits versendet')], default='NONE', max_length=6),
),
migrations.AlterField(
model_name='list',
name='mail_state',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('INF', 'die Benachrichtigung End-Mail wurde bereits versendet'), ('END', 'alle automatischen Mails, auch surveyMail, wurden bereits versendet')], default='NONE', max_length=6),
),
migrations.AlterField(
model_name='literature',
name='mail_state',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('INF', 'die Benachrichtigung End-Mail wurde bereits versendet'), ('END', 'alle automatischen Mails, auch surveyMail, wurden bereits versendet')], default='NONE', max_length=6),
),
migrations.AlterField(
model_name='project',
name='mail_state',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('INF', 'die Benachrichtigung End-Mail wurde bereits versendet'), ('END', 'alle automatischen Mails, auch surveyMail, wurden bereits versendet')], default='NONE', max_length=6),
),
migrations.AlterField(
model_name='travel',
name='mail_state',
field=models.CharField(choices=[('NONE', 'noch keine Mail versendet'), ('INF', 'die Benachrichtigung End-Mail wurde bereits versendet'), ('END', 'alle automatischen Mails, auch surveyMail, wurden bereits versendet')], default='NONE', max_length=6),
),
]

+ 0
- 0
input/migrations/__init__.py View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save