Skip to content

Commit

Permalink
修复了宿舍分配结果不显示的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Deophius authored and pkuGenuine committed Aug 10, 2024
1 parent c1edac0 commit dc4733d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dormitory/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ def show_dorm_assign(self):
roommates = [NaturalPerson.objects.get_by_user(assign.user)
for assign in dorm_assignment.exclude(user=user)]
self.extra_context.update(
dorm_assign=True,
dorm_assigned=True,
name=user.get_full_name(),
dorm_id=assignment.dormitory.id,
bed_id=assignment.bed_id,
roommates=roommates,
)
except DormitoryAssignment.DoesNotExist:
self.extra_context.update(dorm_assign=False)
self.extra_context.update(dorm_assigned=False)

class AgreementView(ProfileTemplateView):
template_name = 'dormitory/agreement.html'
Expand Down

0 comments on commit dc4733d

Please sign in to comment.