Format and fix logged out bug for most recent orgs
This commit is contained in:
parent
103a4bb69d
commit
30f1c105cb
6 changed files with 703 additions and 12 deletions
|
@ -80,7 +80,9 @@ class FeedView(ListView):
|
|||
start_time__lte=now, end_time__gt=now
|
||||
)
|
||||
context["future_contests"] = visible_contests.filter(start_time__gt=now)
|
||||
context["recent_organizations"] = OrganizationProfile.get_most_recent_organizations(self.request.profile)
|
||||
context[
|
||||
"recent_organizations"
|
||||
] = OrganizationProfile.get_most_recent_organizations(self.request.profile)
|
||||
context["top_rated"] = Profile.objects.filter(is_unlisted=False).order_by(
|
||||
"-rating"
|
||||
)[:10]
|
||||
|
|
|
@ -263,6 +263,7 @@ class OrganizationList(TitleMixin, ListView, OrganizationBase):
|
|||
|
||||
class OrganizationHome(OrganizationDetailView):
|
||||
template_name = "organization/home.html"
|
||||
|
||||
def get_posts(self):
|
||||
posts = (
|
||||
BlogPost.objects.filter(
|
||||
|
|
|
@ -438,7 +438,7 @@ def edit_profile(request):
|
|||
form.fields["test_site"].initial = request.user.has_perm("judge.test_site")
|
||||
|
||||
tzmap = settings.TIMEZONE_MAP
|
||||
|
||||
|
||||
return render(
|
||||
request,
|
||||
"user/edit-profile.html",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue