Explorar el Código

more reductions

Juan Carlos hace 5 años
padre
commit
091910ee05
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      marktplatz/models.py

+ 3 - 3
marktplatz/models.py

@@ -239,7 +239,7 @@ class Product(models.Model):
 
     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 )
+    beschreibung    = TextField( 'Beschreibung', 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 in Jahr', help_text="Wann wurde das Projekt in Betrieb genommen?", validators=[MinValueValidator(0), MaxValueValidator(9999)], null = True, blank=True )
@@ -427,12 +427,12 @@ class Wohnprojekt(Product):
             return "Wohnprojekt"
 
     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      = TextField    ( '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 )
     schwerpunkt       = CharField    ( 'Inhaltlicher Schwerpunkt',   max_length = 2048,  help_text="Inhaltlicher Schwerpunkt", null = True, blank=True )
     wohnbaufoerderung = CharField    ( 'Wohnbauförderung',    max_length = 2048,   choices=WOHNBAUFOERDERUNG, help_text="Wohnbauförderung", null = True, blank=True )
     artmodell         = TextField    ( 'Art der Modells',    max_length = 2048,   choices=ARTMODELL, help_text="Art der Modells", null = True, blank=True )
-    bautraeger        = TextField    ( 'Bauträger',    max_length = 4096,   choices=BAUTRAEGER, help_text="Bauträger", null = True, blank=True )
+    bautraeger        = TextField    ( 'Bauträger',    max_length = 2048,   choices=BAUTRAEGER, help_text="Bauträger", null = True, blank=True )
     aerwachsene       = IntegerField( 'Anzahl an Erwachsenen', help_text="Anzahl an Erwachsenen", validators=[MinValueValidator(0), MaxValueValidator(9999)], null = True, blank=True )
     akinder           = IntegerField( 'Anzahl an Kinder', help_text="Anzahl an Kinder", validators=[MinValueValidator(0), MaxValueValidator(9999)], null = True, blank=True )
     @property