Skip to content

Commit

Permalink
Dropping unnecessary files
Browse files Browse the repository at this point in the history
  • Loading branch information
kallewesterling committed Sep 11, 2024
1 parent d9e331e commit e34593e
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions seshat/apps/core/custom_filters.py
Original file line number Diff line number Diff line change
@@ -1,32 +0,0 @@
from django import template

register = template.Library()


@register.filter
def get_attributes(obj):
"""
A custom filter to get all attributes of an object in a template.
Args:
obj (object): The object to get attributes from.
Returns:
dict: A dictionary of the object's attributes.
"""
return vars(obj)


@register.filter
def zip_lists(a, b):
"""
A custom filter to zip two lists together in a template.
Args:
a (list): The first list to zip.
b (list): The second list to zip.
Returns:
zip: A zip object of the two lists.
"""
return zip(a, b)

0 comments on commit e34593e

Please sign in to comment.