diff --git a/web_dev/sas_web/meingoethopia/admin.py b/web_dev/sas_web/meingoethopia/admin.py index dc49398..96bc9c0 100644 --- a/web_dev/sas_web/meingoethopia/admin.py +++ b/web_dev/sas_web/meingoethopia/admin.py @@ -14,20 +14,21 @@ ban_ip.short_description = "Urheber ausgewählter Eintrage verbannen" # Register your models here. class BetriebAdmin(admin.ModelAdmin): - list_display = ('name', 'manager', 'confirmed') - list_filter = ('confirmed',) + list_display = ('name', 'manager', 'confirmed', 'approved') + list_filter = ('confirmed', 'approved') actions = [ban_ip] class ParteiAdmin(admin.ModelAdmin): - list_display = ('name', 'abbreviation', 'chef', 'description', 'confirmed') - list_filter = ('confirmed',) + list_display = ('name', 'abbreviation', 'chef', 'description', 'confirmed', + 'approved') + list_filter = ('confirmed', 'approved') actions = [ban_ip] class PresidentAdmin(admin.ModelAdmin): - list_display = ('name', 'confirmed') - list_filter = ('confirmed',) + list_display = ('name', 'confirmed', 'approved') + list_filter = ('confirmed', 'approved') actions = [ban_ip] diff --git a/web_dev/sas_web/meingoethopia/models.py b/web_dev/sas_web/meingoethopia/models.py index 6a2a6e5..990217e 100644 --- a/web_dev/sas_web/meingoethopia/models.py +++ b/web_dev/sas_web/meingoethopia/models.py @@ -9,6 +9,7 @@ class Betrieb(models.Model): business_idea = models.TextField('Idee') ip_address = models.CharField('IP Adresse', max_length=50, blank=True) confirmed = models.BooleanField('Bestätigt', default=False) + approved = models.BooleanField('Zugelassen', default=False) def __str__(self): return str(self.name) @@ -26,6 +27,7 @@ class Partei(models.Model): description = models.TextField('Beschreibung (Ziele etc.)') ip_address = models.CharField('IP Adresse', max_length=50, blank=True) confirmed = models.BooleanField('Bestätigt', default=False) + approved = models.BooleanField('Zugelassen', default=False) def __str__(self): return str(self.name) @@ -41,6 +43,7 @@ class PresidentCandidate(models.Model): motivation = models.TextField('Motivation') ip_address = models.CharField('IP Adresse', max_length=50, blank=True) confirmed = models.BooleanField('Bestätigt', default=False) + approved = models.BooleanField('Zugelassen', default=False) def __str__(self): return str(self.name)