mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
basics of invite link creation
This commit is contained in:
@@ -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')])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user