사용자 정보 가져오기(user)
● Model
def post(self, request, pk):
notice = Notice.objects.get(pk=pk)
notice.writer = request.user.name
notice.save()
return redirect()
● Template
{% for row in object_list %}
<tr>
<td> {{ row.user.name }} </td>
</tr>
{% endfor %}