|
@@ -186,24 +186,30 @@ class Product(models.Model):
|
|
|
('Sonstiges', 'Sonstiges'),
|
|
('Sonstiges', 'Sonstiges'),
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
- 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 = CharField( 'Beschreibung', max_length = 256, help_text="Beschreibung des Projektes", null = True, blank=True )
|
|
|
|
|
- learning = CharField( 'Learning', max_length = 256, help_text="Learning", null = True, blank=True )
|
|
|
|
|
|
|
+ @property
|
|
|
|
|
+ def kind_of_product(self):
|
|
|
|
|
+ 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( 'Beschreibung', max_length = 4096, 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 )
|
|
gruendungsjahr = IntegerField('Gründungsjahr', help_text="Gründungsjahr des Projekts", validators=[MinValueValidator(0), MaxValueValidator(9999)], null = True, blank=True )
|
|
|
betriebgenommen = IntegerField('in Betrieb genommen in Jahr', help_text="Wann wurde das Projekt in Betrieb genommen?", validators=[MinValueValidator(0), MaxValueValidator(9999)], null = True, blank=True )
|
|
betriebgenommen = IntegerField('in Betrieb genommen in 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 )
|
|
|
|
|
|
|
+ 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 )
|
|
|
- website = URLField ( 'Website', max_length = 2048, help_text="Website des des Projektes", null = True, blank=True )
|
|
|
|
|
- frei = CharField( 'Platz frei', max_length = 4, choices=FREI, default='NEIN', help_text="Gibt es freie Plätze?", null = True, blank=False )
|
|
|
|
|
|
|
+ website = URLField ( 'Website', max_length = 2048, help_text="Website des Projektes", null = True, blank=True )
|
|
|
|
|
+ email = EmailField ( 'Email', max_length = 2048, help_text="Email des Projektes", null = True, blank=True )
|
|
|
|
|
+ frei = CharField ( 'Platz frei', max_length = 4, choices=FREI, default='NEIN', help_text="Gibt es freie Plätze?", null = True, blank=False )
|
|
|
|
|
+ kfrei = CharField ( 'Platz frei - Kommentar', max_length = 2048, help_text="Kommentar", null = True, blank=True )
|
|
|
rechtsform = CharField ( 'Rechtsform', max_length = 32, help_text="Rechtsform des Projektes", null = True, blank=True )
|
|
rechtsform = CharField ( 'Rechtsform', max_length = 32, help_text="Rechtsform des Projektes", null = True, blank=True )
|
|
|
orga = CharField ( 'Organisationsform', max_length = 64, help_text="Organisationsform des Projektes.", null = True, blank=True )
|
|
orga = CharField ( 'Organisationsform', max_length = 64, help_text="Organisationsform des Projektes.", null = True, blank=True )
|
|
|
mitmachen = BooleanField( 'Mitmachen möglich', default=False, help_text="Kann jemand mitmachen?", null = True, blank=False )
|
|
mitmachen = BooleanField( 'Mitmachen möglich', default=False, help_text="Kann jemand mitmachen?", null = True, blank=False )
|
|
|
terms = NullBooleanField(help_text="")
|
|
terms = NullBooleanField(help_text="")
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
title = CharField('Product Title',max_length = 100,null = True, blank=True)
|
|
title = CharField('Product Title',max_length = 100,null = True, blank=True)
|
|
|
country = CountryField(blank=True,multiple=True, help_text="")
|
|
country = CountryField(blank=True,multiple=True, help_text="")
|
|
|
city = CharField(max_length = 100,null = True, blank=True, help_text="")
|
|
city = CharField(max_length = 100,null = True, blank=True, help_text="")
|
|
@@ -334,6 +340,10 @@ class Wohnprojekt(Product):
|
|
|
('Kinderspielplatz', 'Kinderspielplatz'),
|
|
('Kinderspielplatz', 'Kinderspielplatz'),
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
|
|
+ @property
|
|
|
|
|
+ def kind_of_product(self):
|
|
|
|
|
+ return "Wohnprojekt"
|
|
|
|
|
+
|
|
|
eigentum = CharField ( 'Rechtliche Konstruktion', max_length = 6, choices=EIGENTUM, default='GEMIET', help_text="Rechtliche Konstruktion", null = True, blank=True )
|
|
eigentum = CharField ( 'Rechtliche Konstruktion', max_length = 6, choices=EIGENTUM, default='GEMIET', help_text="Rechtliche Konstruktion", null = True, blank=True )
|
|
|
inseratstext = CharField ( 'Inseratstext', max_length = 2048, help_text="Inseratstext", null = True, blank=True )
|
|
inseratstext = CharField ( 'Inseratstext', max_length = 2048, help_text="Inseratstext", null = True, blank=True )
|
|
|
altneu = CharField ( 'Altbau/Neubau', max_length = 4, choices=ALTNEU, help_text="Altbau/Neubau", null = True, blank=False )
|
|
altneu = CharField ( 'Altbau/Neubau', max_length = 4, choices=ALTNEU, help_text="Altbau/Neubau", null = True, blank=False )
|
|
@@ -352,7 +362,7 @@ class Wohnprojekt(Product):
|
|
|
sonstige_flaechen = IntegerField( 'Sonstige Flächen', help_text="Sonstige Flächen", validators=[MinValueValidator(0)], default = 0, null = True, blank=True )
|
|
sonstige_flaechen = IntegerField( 'Sonstige Flächen', help_text="Sonstige Flächen", validators=[MinValueValidator(0)], default = 0, null = True, blank=True )
|
|
|
@property
|
|
@property
|
|
|
def flaeche(self):
|
|
def flaeche(self):
|
|
|
- return wohnflaeche + gewerbeflaechen + gemeinschaftsflaechen + sonstige_flaechen
|
|
|
|
|
|
|
+ return self.wohnflaeche + self.gewerbeflaechen + self.gemeinschaftsflaeche + self.sonstige_flaechen
|
|
|
gemeinschaftr = MultiSelectField ( 'Gemeinschaftsräume', max_length = 4096, choices=GEMEINSCHAFTR, help_text="Gemeinschaftsräume", null = True, blank=True )
|
|
gemeinschaftr = MultiSelectField ( 'Gemeinschaftsräume', max_length = 4096, choices=GEMEINSCHAFTR, help_text="Gemeinschaftsräume", null = True, blank=True )
|
|
|
sonderwohnformen = CharField ( 'Sonderwohnformen', max_length = 2048, help_text="Sonderwohnformen, z.B. Wohncluster, WGs, Sonstiges", null = True, blank=True )
|
|
sonderwohnformen = CharField ( 'Sonderwohnformen', max_length = 2048, help_text="Sonderwohnformen, z.B. Wohncluster, WGs, Sonstiges", null = True, blank=True )
|
|
|
raumangebot = MultiSelectField ( 'Raumangebot nach Außen', max_length = 4096, choices=RAUMANGEBOT, help_text="Raumangebot nach Außen", null = True, blank=True )
|
|
raumangebot = MultiSelectField ( 'Raumangebot nach Außen', max_length = 4096, choices=RAUMANGEBOT, help_text="Raumangebot nach Außen", null = True, blank=True )
|