From ce745d33cad169e6a06b41009620cb53b54ee18f Mon Sep 17 00:00:00 2001 From: Ernesto Rico-Schmidt Date: Fri, 20 Sep 2013 18:16:18 +0200 Subject: removed owner of Note. diff --git a/program/admin.py b/program/admin.py index bdd3acc..87cceba 100644 --- a/program/admin.py +++ b/program/admin.py @@ -25,7 +25,6 @@ class ShowTopicAdmin(admin.ModelAdmin): class NoteAdmin(admin.ModelAdmin): date_hierarchy = 'start' - exclude = ('owner',) list_display = ('title', 'show', 'start', 'status') list_filter = ('status',) ordering = ('timeslot',) @@ -42,7 +41,6 @@ class NoteAdmin(admin.ModelAdmin): return super(NoteAdmin, self).formfield_for_foreignkey(db_field, request, **kwargs) def save_model(self, request, obj, form, change): - obj.owner = request.user obj.save() class TimeSlotInline(admin.TabularInline): diff --git a/program/models.py b/program/models.py index 484c191..5ee4446 100644 --- a/program/models.py +++ b/program/models.py @@ -452,7 +452,6 @@ class Note(models.Model): (2, _("Repetition")), ) timeslot = models.OneToOneField(TimeSlot, verbose_name=_("Time slot")) - owner = models.ForeignKey(User, related_name='notes', verbose_name=_("Owner")) title = models.CharField(_("Title"), max_length=128) content = tinymce_models.HTMLField(_("Content")) status = models.IntegerField(_("Status"), choices=STATUS_CHOICES, default=1) -- cgit v0.10.2