bug fixes
This commit is contained in:
@@ -29,14 +29,13 @@ admin.site.register(User, UserAdmin)
|
||||
|
||||
@admin.register(Information)
|
||||
class InformationAdmin(TranslatableAdmin):
|
||||
list_display = ('title', 'published', 'publish_date')
|
||||
list_display = ('title', 'published')
|
||||
list_filter = ('groups',)
|
||||
filter_horizontal = ('groups',)
|
||||
readonly_fields = ('informed_users',)
|
||||
fieldsets = (
|
||||
(None, {'fields': ('title', 'published', 'image', 'cropping')}),
|
||||
(_('Permissions'), {'fields': ('groups',)}),
|
||||
(_('Veröffentlichung'), {'fields': ('publish_date',)}),
|
||||
(_('Information'), {'fields': ('informed_users',)}),
|
||||
)
|
||||
|
||||
|
||||
@@ -45,8 +45,6 @@ class Information(TranslatableModel):
|
||||
placeholder = PlaceholderField('content')
|
||||
|
||||
published = models.BooleanField(verbose_name='Veröffentlicht', default=False)
|
||||
publish_date = models.DateTimeField(verbose_name='Veröffentlichungsdatum', default=timezone.now)
|
||||
|
||||
informed_users = models.ManyToManyField(get_user_model(), verbose_name='Als gelesen markiert von:',
|
||||
null=True, blank=True)
|
||||
|
||||
@@ -55,8 +53,8 @@ class Information(TranslatableModel):
|
||||
)
|
||||
|
||||
class Meta:
|
||||
verbose_name = 'Mitglieder Aufgabe'
|
||||
verbose_name_plural = 'Mitglieder Aufgaben'
|
||||
verbose_name = 'Information'
|
||||
verbose_name_plural = 'Informationen'
|
||||
ordering = ['-publish_date']
|
||||
|
||||
def __str__(self):
|
||||
|
||||
Reference in New Issue
Block a user