Changes between Initial Version and Version 2 of Ticket #19330


Ignore:
Timestamp:
Nov 20, 2012, 1:31:30 AM (11 years ago)
Author:
Claude Paroz
Comment:

Please use preview and proper formatting.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19330 – Description

    initial v2  
    44
    55model:
    6 
     6{{{
    77class Tag(models.Model):
    88    user = models.ForeignKey(User)
     
    1818        db_table = u'tbl_tag'
    1919        unique_together=("user","title")
    20 
     20}}}
    2121
    2222form:
    23 
     23{{{
    2424class Tagform(forms.ModelForm):
    2525   
     
    2727        model=Tag
    2828        exclude = ('status','create_time')
    29 
    30 
     29}}}
    3130
    3231view:
     32{{{
    3333def change_tag_title(request):
    3434    if request.POST and request.is_ajax():
     
    4040        if cur_form.is_valid():
    4141            cur_form.save()
     42}}}
Back to Top