Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1045322
django form save method example
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
adambcooley
Dec 27 2015, 4:20 AM
2015-12-27 04:20:06 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
django form save method example
View Options
class Registration(models.Model):
def __unicode__(self):
return str(self.id)
BusinessName = models.CharField("Business Name", max_length=100, null=True, blank=True)
FirstName = models.CharField("First Name", max_length=100)
LastName = models.CharField("Last Name", max_length=100)
Email = models.EmailField("Email")
Telephone = models.IntegerField("Telephone")
TextUpdate = models.BooleanField("Text Update", default=False)
Address1 = models.CharField("Address1", max_length=100)
Address2 = models.CharField("Address2", max_length=100, null=True, blank=True)
City = models.CharField("City", max_length=100)
State = models.ForeignKey(State, default="IA")
Zip = models.IntegerField("Zip Code")
Note = models.TextField("Note", max_length=500, blank=True)
Created = models.DateTimeField("Created", auto_now=True)
Updated = models.DateTimeField("Updated", auto_now_add=True)
profile_obj = Registration.objects.create(
content=content,
email=email,
)
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/vp/my/rkh2rfwxvlxmpvbo
Default Alt Text
django form save method example (1 KB)
Attached To
Mode
P1912 django form save method example
Attached
Detach File
Event Timeline
Log In to Comment