Changes between Initial Version and Version 1 of Ticket #10582
- Timestamp:
- Mar 22, 2009, 10:08:12 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10582 – Description
initial v1 1 1 This is the problem that i have found. 2 2 I have created a simple model like this: 3 3 {{{ 4 4 from django.db import models 5 5 from django.utils.translation import ugettext_lazy as _ … … 9 9 class Test(models.Model): 10 10 simple_test = models.TextField(_("simple text")) 11 }}} 11 12 12 13 Then, for some reasons, i want to customize the behaviour of the admin interface, so i want to define 13 14 a special form for my model. So there is the code: 14 15 15 16 {{{ 16 17 from testapp.models import Test 17 18 from django.contrib import admin … … 29 30 30 31 admin.site.register(Test, MyTestAdmin) 31 32 }}} 32 33 33 34 So, after giving the usual commands django-admin makemessages -l it and django-admin compilemessages, and after writing … … 35 36 Instead if i change the line: 36 37 38 {{{ 37 39 admin.site.register(Test, MyTestAdmin) 40 }}} 38 41 39 42 to 40 43 44 {{{ 41 45 admin.site.register(Test) 46 }}} 42 47 43 48 everything works fine.