Skip to content
Snippets Groups Projects
Commit ce745d33 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

removed owner of Note.

parent 1f76b988
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment