basics of invite link creation

This commit is contained in:
vabene1111
2020-09-01 14:57:20 +02:00
parent 2a0a85018a
commit 392ee73719
10 changed files with 145 additions and 9 deletions

View File

@@ -117,6 +117,13 @@ class ShoppingListTable(tables.Table):
fields = ('id', 'created_by', 'created_at')
class InviteLinkTable(tables.Table):
class Meta:
model = InviteLink
template_name = 'generic/table_template.html'
fields = ('id', 'username', 'group', 'valid_until', 'created_by', 'created_at', 'used_by')
class ViewLogTable(tables.Table):
recipe = tables.LinkColumn('view_recipe', args=[A('recipe_id')])