first commit
This commit is contained in:
2
core/apps/accounts/forms/__init__.py
Normal file
2
core/apps/accounts/forms/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
||||
from .likes import * # noqa
|
||||
from .participant import * # noqa
|
||||
10
core/apps/accounts/forms/likes.py
Normal file
10
core/apps/accounts/forms/likes.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from django import forms
|
||||
|
||||
from core.apps.accounts.models import LikesModel
|
||||
|
||||
|
||||
class LikesForm(forms.ModelForm):
|
||||
|
||||
class Meta:
|
||||
model = LikesModel
|
||||
fields = "__all__"
|
||||
10
core/apps/accounts/forms/participant.py
Normal file
10
core/apps/accounts/forms/participant.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from django import forms
|
||||
|
||||
from core.apps.accounts.models import ParticipantModel
|
||||
|
||||
|
||||
class ParticipantForm(forms.ModelForm):
|
||||
|
||||
class Meta:
|
||||
model = ParticipantModel
|
||||
fields = "__all__"
|
||||
Reference in New Issue
Block a user