mirror of https://github.com/scrapy/scrapy.git
Add save_on_top to admin sections
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40115
This commit is contained in:
parent
e421206573
commit
22e3d3a02e
|
|
@ -71,6 +71,7 @@ class Article(models.Model):
|
|||
list_display = ("title", "main", "position_link", "publish_link",
|
||||
"updated")
|
||||
list_filter = ("main", "created", "publish")
|
||||
save_on_top = True
|
||||
|
||||
class Meta:
|
||||
verbose_name = _("article")
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ class DownloadLink(models.Model):
|
|||
class Admin:
|
||||
list_display = ("text", "address", "public_link", "created")
|
||||
list_filter = ("public", "created")
|
||||
save_on_top = True
|
||||
|
||||
class Meta:
|
||||
verbose_name = _("download link")
|
||||
|
|
|
|||
Loading…
Reference in New Issue