Changes between Initial Version and Version 2 of Ticket #19330
- Timestamp:
- Nov 20, 2012, 1:31:30 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19330 – Description
initial v2 4 4 5 5 model: 6 6 {{{ 7 7 class Tag(models.Model): 8 8 user = models.ForeignKey(User) … … 18 18 db_table = u'tbl_tag' 19 19 unique_together=("user","title") 20 20 }}} 21 21 22 22 form: 23 23 {{{ 24 24 class Tagform(forms.ModelForm): 25 25 … … 27 27 model=Tag 28 28 exclude = ('status','create_time') 29 30 29 }}} 31 30 32 31 view: 32 {{{ 33 33 def change_tag_title(request): 34 34 if request.POST and request.is_ajax(): … … 40 40 if cur_form.is_valid(): 41 41 cur_form.save() 42 }}}