Commits

Ruslan Keba  committed f8331d6

event admin form updated with full width summary text area

  • Participants
  • Parent commits 2487768

Comments (0)

Files changed (1)

 # -*- coding: utf-8 -*-
 
 from django.contrib import admin
+from django.forms import TextInput, Textarea
+from django.db import models
 
 from models import Club, Event
 
     date_hierarchy = 'date_begin'
     actions = (make_enabled, make_disabled, clone_event)
 
+    formfield_overrides = {
+        models.TextField: {'widget': Textarea(attrs={
+            'style':'width: 100%; height: 25em; font-family: Consolas, monospace; font-size: 120%'})},
+    }
+
     def queryset(self, request):
         return self.model.all_objects.get_query_set()