mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-22 02:18:21 +02:00
Merge branch 'master' into 'app_member'
# Conflicts: # apps/member/views.py
This commit is contained in:
@ -45,9 +45,16 @@ class UserCreateView(CreateView):
|
||||
return super().form_valid(form)
|
||||
|
||||
|
||||
|
||||
class UserDetailView(LoginRequiredMixin,DetailView):
|
||||
model = Profile
|
||||
|
||||
def get_context_data(slef,**kwargs):
|
||||
context = super().get_context_data(**kwargs)
|
||||
user = context['object'].user.note
|
||||
user_transactions = \
|
||||
Transaction.objects.all().filter(Q(source=user) | Q(destination=user))
|
||||
context['history_list'] = user_transactions
|
||||
return context
|
||||
|
||||
|
||||
class ClubCreateView(LoginRequiredMixin,CreateView):
|
||||
|
Reference in New Issue
Block a user