23 lines
		
	
	
		
			475 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			475 B
		
	
	
	
		
			Python
		
	
	
	
	
	
"""Core user token form"""
 | 
						|
from django import forms
 | 
						|
 | 
						|
from passbook.core.models import Token
 | 
						|
 | 
						|
 | 
						|
class UserTokenForm(forms.ModelForm):
 | 
						|
    """Token form, for tokens created by endusers"""
 | 
						|
 | 
						|
    class Meta:
 | 
						|
 | 
						|
        model = Token
 | 
						|
        fields = [
 | 
						|
            "identifier",
 | 
						|
            "expires",
 | 
						|
            "expiring",
 | 
						|
            "description",
 | 
						|
        ]
 | 
						|
        widgets = {
 | 
						|
            "identifier": forms.TextInput(),
 | 
						|
            "description": forms.TextInput(),
 | 
						|
        }
 |