Changes between Initial Version and Version 1 of Ticket #10582


Ignore:
Timestamp:
Mar 22, 2009, 10:08:12 AM (16 years ago)
Author:
Ramiro Morales
Comment:

(reformatted description)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10582 – Description

    initial v1  
    11This is the problem that i have found.
    22I have created a simple model like this:
    3 
     3{{{
    44from django.db import models
    55from django.utils.translation import ugettext_lazy as _
     
    99class Test(models.Model):
    1010    simple_test = models.TextField(_("simple text"))
     11}}}
    1112
    1213Then, for some reasons, i want to customize the behaviour of the admin interface, so i want to define
    1314a special form for my model.  So there is the code:
    1415
    15 
     16{{{
    1617from testapp.models import Test
    1718from django.contrib import admin
     
    2930
    3031admin.site.register(Test, MyTestAdmin)
    31 
     32}}}
    3233
    3334So, after giving the usual commands django-admin makemessages -l it and  django-admin compilemessages, and after writing
     
    3536Instead if i change the line:
    3637
     38{{{
    3739admin.site.register(Test, MyTestAdmin)
     40}}}
    3841
    3942to
    4043
     44{{{
    4145admin.site.register(Test)
     46}}}
    4247
    4348everything works fine.
Back to Top