Django custom user page -
i’d design django page custom user, lets teacher class, can manage student users in list ability remove them site. sort of custom admin page, teacher have ability manage students, not have access actual django admin site. in actual function of site, students , teachers see different pages based on user type. what’s best way go implementing not versed in django? edit: should clarify user manager page not actual admin site, list box users , ability manage them.
come in adminis , there tab , users , select user ( teacher ) , gave him 'user rights :' want.
or:
do 'custom user model'
example:
teacher = models.booleanfield(verbose_name='teacher', default=false)
and in admin real teacher == booleanfield == true
@login_required def deleted(request, id): context = {} complaint = complaint.objects.get(id=id) if request.user.: complaint.is_deleted = true complaint.delete() context['deleted'] = complaint.is_deleted return redirect('complaints')
Comments
Post a Comment