all: fully switch to Invitation
This commit is contained in:
@ -2,22 +2,21 @@
|
||||
|
||||
from django import forms
|
||||
|
||||
from passbook.core.models import Invite
|
||||
from passbook.core.models import Invitation
|
||||
|
||||
|
||||
class InviteForm(forms.ModelForm):
|
||||
"""InviteForm"""
|
||||
class InvitationForm(forms.ModelForm):
|
||||
"""InvitationForm"""
|
||||
|
||||
class Meta:
|
||||
|
||||
model = Invite
|
||||
fields = ['created_by', 'expires', 'fixed_username', 'fixed_email']
|
||||
model = Invitation
|
||||
fields = ['expires', 'fixed_username', 'fixed_email']
|
||||
labels = {
|
||||
'fixed_username': "Force user's username (optional)",
|
||||
'fixed_email': "Force user's email (optional)",
|
||||
}
|
||||
widgets = {
|
||||
'created_by': forms.Select(attrs={'disabled': 'disabled'}),
|
||||
'fixed_username': forms.TextInput(),
|
||||
'fixed_email': forms.TextInput(),
|
||||
}
|
||||
|
Reference in New Issue
Block a user