from django.contrib import admin
-import api.models
+from api import models
-admin.site.register(api.models.PullRequest)
-admin.site.register(api.models.PartCache)
+class PullRequestAdmin(admin.ModelAdmin):
+ list_display = ('comitter', 'timestamp', 'comment', 'document', 'source_revision')
+
+admin.site.register(models.PullRequest, PullRequestAdmin)
+admin.site.register(models.PartCache)
gallery['pages'].append( quote(url.encode('utf-8')) )
-# gallery['pages'].sort()
+ gallery['pages'].sort()
galleries.append(gallery)
return galleries
# sync state with repository
prq.status = 'A'
prq.merged_revision = str(src_doc.shared().revision)
- prq.merged_timestamp = datetime.now()
+ prq.merged_timestamp = datetime.datetime.now()
prq.save()
return SuccessAllOk().django_response({
}
.htmlview .dzielo_nadrzedne {
- font-size: 0.375em;
+ font-size: 1.5em;
display: block;
line-height: 1.5em;
margin-bottom: -0.25em;
/* .htmlview *[wl2o\:editable] {
background-color: pink;
-} */
+}
.htmlview *[wl2o\:editable] *[wl2o\:editable] {
background-color: red;
-}
+} */
.htmlview .annotation:hover {
Django==1.1.1
lxml==2.2.2
mercurial==1.3.1
-librarian==1.2.6
+librarian>=1.3.dev,<1.4
django-piston==0.2.3rc1
django-cas-consumer==0.1dev
# MySQL-python>=1.2,<2.0