[virtualcommons-svn] commit/vcweb: alllee: adding ActivityAvailability to admin site
Status: Beta
Brought to you by:
alllee
From: Bitbucket <com...@bi...> - 2011-07-06 19:16:46
|
1 new changeset in vcweb: http://bitbucket.org/virtualcommons/vcweb/changeset/e738a1174e1a/ changeset: e738a1174e1a user: alllee date: 2011-07-06 21:16:47 summary: adding ActivityAvailability to admin site affected #: 2 files (173 bytes) --- a/vcweb/lighterprints/admin.py Sat Jul 02 20:24:09 2011 -0700 +++ b/vcweb/lighterprints/admin.py Wed Jul 06 12:16:47 2011 -0700 @@ -2,6 +2,7 @@ registering django models with django admin ''' from django.contrib import admin -from vcweb.lighterprints.models import Activity +from vcweb.lighterprints.models import Activity, ActivityAvailability admin.site.register(Activity) +admin.site.register(ActivityAvailability) --- a/vcweb/lighterprints/models.py Sat Jul 02 20:24:09 2011 -0700 +++ b/vcweb/lighterprints/models.py Wed Jul 06 12:16:47 2011 -0700 @@ -26,6 +26,11 @@ def icon_name(self): return self.name + @property + def icon_url(self): + # FIXME: implement as return "/activity/id/icon" + pass + def __unicode__(self): return u'%s (+%s)' % (self.label, self.savings) Repository URL: https://bitbucket.org/virtualcommons/vcweb/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. |