Templates and Models
Hi all,
I have the following form( TextBox ) :
<form><input type="text" name="Enter"
style="width: 450px;height: 50px;" /></form>
I wrote the following Model as an input for the TextBox, and when we write a subject in the text box and press Enter it should be shown in another box above the TextBox :
class Company(models.Model):
Subject = models.CharField(max_length=30)
def __unicode__(self):
return self.Subject
I don't know how to relate these two together, would you please give me a hint?
Thanks in advance.
Sophia
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/zwvAcQ3M2RIJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home