damned-lies r1144 - in branches/djamnedlies: . stats
- From: claudep svn gnome org
- To: svn-commits-list gnome org
- Subject: damned-lies r1144 - in branches/djamnedlies: . stats
- Date: Sat, 8 Nov 2008 15:43:06 +0000 (UTC)
Author: claudep
Date: Sat Nov 8 15:43:06 2008
New Revision: 1144
URL: http://svn.gnome.org/viewvc/damned-lies?rev=1144&view=rev
Log:
Modified:
branches/djamnedlies/ChangeLog
branches/djamnedlies/stats/admin.py
Modified: branches/djamnedlies/stats/admin.py
==============================================================================
--- branches/djamnedlies/stats/admin.py (original)
+++ branches/djamnedlies/stats/admin.py Sat Nov 8 15:43:06 2008
@@ -60,11 +60,17 @@
class DomainAdmin(admin.ModelAdmin):
pass
+class CategoryInline(admin.TabularInline):
+ model = Category
+ raw_id_fields = ('branch',) # Too costly otherwise
+ extra = 1
+
class CategoryAdmin(admin.ModelAdmin):
search_fields = ('category', 'branch__module__name')
class ReleaseAdmin(admin.ModelAdmin):
list_display = ('name', 'status', 'stringfrozen')
+ inlines = [ CategoryInline ]
class StatisticsAdmin(admin.ModelAdmin):
search_fields = ('language__name', 'branch__module__name')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]