@ -55,7 +55,7 @@ class Account(models.Model):
code = models . CharField ( ' Kostenstelle ' , max_length = 5 , default = " DEF " ,
null = False , primary_key = True )
description = models . CharField ( ' Beschreibung ' , max_length = 60 , default = ' NO DESCRIPTION ' )
intern_notes = models . TextField ( max_length = 1000 , blank = True )
def __str__ ( self ) :
return f " {self.code} {self.description} "
@ -79,7 +79,8 @@ class Project(Volunteer):
account = models . ForeignKey ( ' Account ' , on_delete = models . CASCADE , null = True , to_field = ' code ' , db_constraint = False )
granted_from = models . CharField ( max_length = 100 , null = True , verbose_name = ' Bewilligt von ' )
notes = models . TextField ( max_length = 1000 , null = True , blank = True , verbose_name = ' Anmerkungen ' )
intern_notes = models . TextField ( max_length = 1000 , blank = True )
# the following Fields are not supposed to be edited by users
pid = models . CharField ( max_length = 15 , null = True , blank = True )
end_mail_send = models . BooleanField ( null = True )
@ -190,7 +191,7 @@ class Library(Grant):
)
library = models . CharField ( max_length = 200 )
duration = models . CharField ( max_length = 100 , verbose_name = " Dauer " )
intern_notes = models . TextField ( max_length = 1000 , blank = True )
def __str__ ( self ) :
return self . library
@ -209,11 +210,12 @@ class Literature(Grant):
help_text = " Bitte gib an, wo du das Werk kaufen möchtest. " )
selfbuy = models . CharField ( max_length = 10 , verbose_name = ' Selbstkauf? ' , choices = SELFBUY_CHOICES . items ( ) , default = ' TRUE ' )
selfbuy_give_data = models . BooleanField ( default = ' NONE ' , verbose_name = format_html ( ' Datenweitergabe erlauben ' ) , help_text = format_html ( ' Weitergabe meiner Daten (Name, Postadresse) an den von mir angegebenen Anbieter/Dienstleister. ' ) )
intern_notes = models . TextField ( max_length = 1000 , blank = True )
class IFG ( Grant ) :
url = models . URLField ( max_length = 2000 , verbose_name = " URL " ,
help_text = " Bitte gib den Link zu deiner Anfrage bei Frag den Staat an. " )
intern_notes = models . TextField ( max_length = 1000 , blank = True )
def __str__ ( self ) :
return " IFG-Anfrage von " + self . realname
@ -249,11 +251,13 @@ class Email(Domain):
other = models . CharField ( max_length = 50 , blank = True , null = True , verbose_name = " Sonstiges " )
adult = models . CharField ( max_length = 10 , verbose_name = ' Volljährigkeit ' , choices = ADULT_CHOICES . items ( ) , default = ' NONE ' )
intern_notes = models . TextField ( max_length = 1000 , blank = True )
class List ( Domain ) :
address = models . CharField ( max_length = 50 , default = ' NO_ADDRESS ' ,
verbose_name = " Adressbestandteil für Projektmailingliste " ,
help_text = format_html ( " Bitte gib hier den gewünschten Adressbestandteil an,<br>der sich vor der Domain befinden soll. " ) )
intern_notes = models . TextField ( max_length = 1000 , blank = True )
PROJECT_CHOICE = { ' PEDIA ' : ' Wikipedia ' ,
' SOURCE ' : ' Wikisource ' ,
@ -291,3 +295,4 @@ class BusinessCard(Extern):
sent_to = models . TextField ( max_length = 1000 , verbose_name = ' Versandadresse ' ,
default = ' ' , help_text = " Bitte gib den Namen und die vollständige Adresse ein, an welche die Visitenkarten geschickt werden sollen. " )
send_data_to_print = models . BooleanField ( default = False , verbose_name = format_html ( ' Datenweitergabe erlauben ' ) , help_text = format_html ( ' Hiermit erlaube ich die Weitergabe meiner Daten (Name, Postadresse) an den von Wikimedia Deutschland ausgewählten Dienstleister (z. B. <a href= " wir-machen-druck.de " >wir-machen-druck.de</a>) zum Zwecke des direkten Versands der Druckerzeugnisse an mich. ' ) )
intern_notes = models . TextField ( max_length = 1000 , blank = True )