Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (14 sloc) 0.493 kb
from models import Insert
from django import forms
class InsertForm(forms.ModelForm):
class Meta:
model = Insert
widgets = {'description': forms.Textarea(
attrs={'cols':80, 'rows':5,},
),
}
from cms.admin.placeholderadmin import PlaceholderAdmin # if it's at the start of the file, it breaks imports somehow
from django.contrib import admin
class InsertAdmin(PlaceholderAdmin):
pass
admin.site.register(Insert, InsertAdmin)
Jump to Line
Something went wrong with that request. Please try again.