Skip to content

Commit

Permalink
Merge branch 'release/0.3.38' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Oct 10, 2024
2 parents b27ebe1 + ad2ee54 commit f57aa19
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changes
-------

0.3.38
------
- fix Endpoint admins to reference fbg_date not fbg_datetime

0.3.37
------
- change Endpoint model datetime fields to date
Expand Down
2 changes: 1 addition & 1 deletion meta_reports/admin/endpoints_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

@admin.register(Endpoints, site=meta_reports_admin)
class EndpointsAdmin(EndpointsModelAdminMixin, admin.ModelAdmin):
queryset_filter = dict(offstudy_datetime__isnull=True)
queryset_filter = dict(offstudy_date__isnull=True)

def rendered_change_list_note(self):
return render_to_string("meta_reports/endpoints_change_list_note.html")
6 changes: 3 additions & 3 deletions meta_reports/admin/modeladmin_mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ def subject(self, obj=None):
def visit(self, obj=None):
return obj.visit_code

@admin.display(description="FBG DATE", ordering="fbg_date")
def fbg_date(self, obj=None):
return obj.fbg_datetime.date() if obj.fbg_datetime else None
# @admin.display(description="FBG DATE", ordering="fbg_date")
# def fbg_date(self, obj=None):
# return obj.fbg_datetime.date() if obj.fbg_datetime else None

@admin.display(description="FAST", ordering="fasting")
def fast(self, obj=None):
Expand Down

0 comments on commit f57aa19

Please sign in to comment.