diff options
author | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2013-09-20 16:16:18 (GMT) |
---|---|---|
committer | Ernesto Rico-Schmidt <e.rico.schmidt@gmail.com> | 2013-09-20 16:16:18 (GMT) |
commit | ce745d33cad169e6a06b41009620cb53b54ee18f (patch) | |
tree | d86b50b995acef6efbf7b90184ed562fe8b13a9c /program | |
parent | 1f76b988023df1520a3eb35dbecca72d0d693394 (diff) |
removed owner of Note.
Diffstat (limited to 'program')
-rw-r--r-- | program/admin.py | 2 | ||||
-rw-r--r-- | program/models.py | 1 |
2 files changed, 0 insertions, 3 deletions
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) |