Created
March 12, 2010 06:11
-
-
Save rdegges/330082 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
from django import forms | |
class CreateServerForm(forms.Form): | |
""" | |
Create a new Server model. | |
""" | |
hostname = forms.CharField( | |
label = 'Server Name', | |
max_length = 50, | |
required = False | |
) | |
ip = forms.IPAddressField ) | |
label = 'Public IP', | |
required = False | |
) | |
disk_space = forms.IntegerField( | |
label = 'Disk Space in MB', | |
required = False | |
) | |
ram = forms.IntegerField( | |
label = 'RAM in MB', | |
required = False | |
) | |
cpu = forms.IntegerField( | |
label = 'CPU in MHz', | |
required = False | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment