Changes between Initial Version and Version 1 of Ticket #13825
- Timestamp:
- Jun 24, 2010, 12:55:26 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #13825
- Property Resolution → duplicate
- Property Status new → closed
-
Ticket #13825 – Description
initial v1 5 5 Steps to Reproduce Error: 6 6 7 -Set the primary key to display under the admin through the list_display option; along with two other fields8 -Set one of the other fields to the list_display_links option9 -Set last field to the list_editable option7 * Set the primary key to display under the admin through the list_display option; along with two other fields 8 * Set one of the other fields to the list_display_links option 9 * Set last field to the list_editable option 10 10 11 11 … … 13 13 14 14 Models.py 15 15 {{{ 16 #!python 16 17 class Test_Image(models.Model): 17 18 filename = models.CharField(max_length=20, primary_key=True) … … 19 20 sort_order = models.IntegerField() 20 21 last_modified_date = models.DateField(editable=False, auto_now=True) 21 22 }}} 22 23 23 24 Admin.py 24 25 {{{ 26 #!python 25 27 class TestImageAdmin(admin.ModelAdmin): 26 28 list_display = ('display_name', 'filename', 'sort_order',) 27 29 list_display_links = ('display_name',) 28 30 list_editable = ('sort_order',) 31 }}}