-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ivan
committed
Feb 28, 2023
1 parent
45d6293
commit 093c178
Showing
2 changed files
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
from django import template | ||
|
||
from accounts.models import Subscription, User | ||
from accounts.models import ProductBase, User | ||
|
||
register = template.Library() | ||
|
||
|
||
@register.simple_tag | ||
def get_product_internal_info(subscription: Subscription, user: User): | ||
return subscription.get_internal_info(user) | ||
def get_product_internal_info(product: ProductBase, user: User): | ||
return product.get_internal_info(user) |