|
@@ -141,14 +141,14 @@ class Product(models.Model):
|
|
|
def kind_of_product(self):
|
|
def kind_of_product(self):
|
|
|
return "Allgemeines Produkt"
|
|
return "Allgemeines Produkt"
|
|
|
|
|
|
|
|
- name = CharField( 'Name', max_length = 128, help_text="Name des Projekts", null = True, blank=True )
|
|
|
|
|
- claim = CharField( 'Claim / Untertitel', max_length = 256, help_text="Claim / Untertitel", null = True, blank=True )
|
|
|
|
|
- beschreibung = TextField( 'Projektbeschreibung', max_length = 2048, help_text="Beschreibung des Projektes", null = True, blank=True )
|
|
|
|
|
- learning = CharField( 'Learning', max_length = 256, help_text="Learning", null = True, blank=True )
|
|
|
|
|
- gruendungsjahr = IntegerField('Gründungsjahr', help_text="Gründungsjahr des Projekts", validators=[MinValueValidator(0), MaxValueValidator(9999)], null = True, blank=True )
|
|
|
|
|
- betriebgenommen = IntegerField('in Betrieb genommen im Jahr', help_text="Wann wurde das Projekt in Betrieb genommen?", validators=[MinValueValidator(0), MaxValueValidator(9999)], null = True, blank=True )
|
|
|
|
|
- status = CharField( 'Status', max_length = 3, choices=STATUS, default='ENT', help_text="Was ist der Status des Projektes" , null = True, blank=True )
|
|
|
|
|
- adresse = CharField( 'Adresse', max_length = 256, help_text="Adresse des Projektes", null = True, blank=True )
|
|
|
|
|
|
|
+ name = CharField ( 'Name', max_length = 128, help_text="Name des Projekts", null = True, blank=True )
|
|
|
|
|
+ claim = CharField ( 'Claim / Untertitel', max_length = 256, help_text="Claim / Untertitel", null = True, blank=True )
|
|
|
|
|
+ beschreibung = TextField ( 'Projektbeschreibung', max_length = 2048, help_text="Beschreibung des Projektes", null = True, blank=True )
|
|
|
|
|
+ learning = CharField ( 'Learning', max_length = 256, help_text="Learning", null = True, blank=True )
|
|
|
|
|
+ gruendungsjahr = IntegerField( 'Gründungsjahr', help_text="Gründungsjahr des Projekts", validators=[MinValueValidator(0), MaxValueValidator(9999)], null = True, blank=True )
|
|
|
|
|
+ betriebgenommen = IntegerField( 'in Betrieb genommen im Jahr', help_text="Wann wurde das Projekt in Betrieb genommen?", validators=[MinValueValidator(0), MaxValueValidator(9999)], null = True, blank=True )
|
|
|
|
|
+ status = CharField ( 'Status', max_length = 3, choices=STATUS, default='ENT', help_text="Was ist der Status des Projektes" , null = True, blank=True )
|
|
|
|
|
+ adresse = CharField ( 'Adresse', max_length = 256, help_text="Adresse des Projektes", null = True, blank=True )
|
|
|
plz = CharField ( 'Adresse', max_length = 256, help_text="PLZ des Projektes", null = True, blank=True )
|
|
plz = CharField ( 'Adresse', max_length = 256, help_text="PLZ des Projektes", null = True, blank=True )
|
|
|
adresse_zusatz = CharField ( 'Adresse Zusatz', max_length = 256, help_text="Adresse Zusatz", null = True, blank=True )
|
|
adresse_zusatz = CharField ( 'Adresse Zusatz', max_length = 256, help_text="Adresse Zusatz", null = True, blank=True )
|
|
|
ort = CharField ( 'Ort', max_length = 4, choices=ORT, default='WELT', help_text="Ort des Projektes", null = True, blank=True )
|
|
ort = CharField ( 'Ort', max_length = 4, choices=ORT, default='WELT', help_text="Ort des Projektes", null = True, blank=True )
|
|
@@ -276,18 +276,18 @@ class Wohnprojekt(Product):
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
RAUMANGEBOT = [
|
|
RAUMANGEBOT = [
|
|
|
- ('Co-Working', 'Co-Working'),
|
|
|
|
|
- ('Geschäftslokal(e)', 'Geschäftslokal(e)'),
|
|
|
|
|
- ('Büros', 'Büros'),
|
|
|
|
|
- ('Veranstaltungsraum', 'Veranstaltungsraum'),
|
|
|
|
|
- ('Gemeinschaftsküche', 'Gemeinschaftsküche'),
|
|
|
|
|
- ('Kinderspielraum', 'Kinderspielraum'),
|
|
|
|
|
- ('Sauna / Wellness', 'Sauna / Wellness'),
|
|
|
|
|
- ('Fitnessraum', 'Fitnessraum'),
|
|
|
|
|
- ('Werkstatt', 'Werkstatt'),
|
|
|
|
|
- ('Waschküche', 'Waschküche'),
|
|
|
|
|
- ('Musikraum', 'Musikraum'),
|
|
|
|
|
- ('Gästewohnung', 'Gästewohnung'),
|
|
|
|
|
|
|
+ ('co_working', 'Co-Working'),
|
|
|
|
|
+ ('geschaeftslokale', 'Geschäftslokal(e)'),
|
|
|
|
|
+ ('bueros', 'Büros'),
|
|
|
|
|
+ ('veranstaltungsraum', 'Veranstaltungsraum'),
|
|
|
|
|
+ ('gemeinschaftskueche', 'Gemeinschaftsküche'),
|
|
|
|
|
+ ('kinderspielraum', 'Kinderspielraum'),
|
|
|
|
|
+ ('sauna_wellness', 'Sauna / Wellness'),
|
|
|
|
|
+ ('fitnessraum', 'Fitnessraum'),
|
|
|
|
|
+ ('werkstatt', 'Werkstatt'),
|
|
|
|
|
+ ('waschkueche', 'Waschküche'),
|
|
|
|
|
+ ('musikraum', 'Musikraum'),
|
|
|
|
|
+ ('gaestewohnung', 'Gästewohnung'),
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
BAUWEISE = [
|
|
BAUWEISE = [
|
|
@@ -359,9 +359,6 @@ class Wohnprojekt(Product):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
class Link(models.Model):
|
|
class Link(models.Model):
|
|
|
product = ForeignKey(Product, on_delete=models.CASCADE)
|
|
product = ForeignKey(Product, on_delete=models.CASCADE)
|
|
|
link_description = CharField(null=True, blank=True, max_length = 2048)
|
|
link_description = CharField(null=True, blank=True, max_length = 2048)
|