New management command to clean logs.

fixes #320
This commit is contained in:
Antoine Nguyen
2013-05-18 10:32:32 +02:00
parent fcc5a795c3
commit d78d05060d
4 changed files with 52 additions and 0 deletions
+6
View File
@@ -156,6 +156,12 @@ class GeneralParametersForm(parameters.AdminParametersForm):
sep3 = SeparatorField(label=ugettext_lazy("Miscellaneous"))
log_maximum_age = forms.IntegerField(
label=ugettext_lazy("Maximum log record age"),
initial=365,
help_text=ugettext_lazy("The maximum age in days of a log record")
)
items_per_page = forms.IntegerField(
label=ugettext_lazy("Items per page"),
initial=30,