#13041: Error on InlineModel Admin
-------------------------------------------+--------------------------------
          Reporter:  mdpetry               |         Owner:  matiasb
            Status:  assigned              |     Milestone:  1.2    
         Component:  django.contrib.admin  |       Version:  1.1    
        Resolution:                        |      Keywords:         
             Stage:  Accepted              |     Has_patch:  0      
        Needs_docs:  0                     |   Needs_tests:  0      
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Changes (by humitos):

 * cc: [email protected] (added)

Comment:

 I test this issue too, but I had different "". I created a sample app like
 this:

 ''models.py''
 {{{
 from django.db import models

 # Create your models here.

 class MyModel(models.Model):
     date = models.DateField()

 class OtherModel(models.Model):
     mymodel = models.ForeignKey(MyModel)
     name = models.CharField(max_length=50)

 class AnotherInlineModel(models.Model):
     mymode = models.ForeignKey(MyModel)
     date = models.DateField()
     another_date = models.DateField()
     name = models.CharField(max_length=25)
 }}}

 ''admin.py''
 {{{
 from django.contrib import admin

 from models import *

 class OtherModelAdmin(admin.TabularInline):
     model = OtherModel
     #date_hierachy = 'date'

 class AnotherInlineModelAdmin(admin.TabularInline):
     model = AnotherInlineModel
     #date_hierachy = 'date'

 class MyModelAdmin(admin.ModelAdmin):
     inlines = [
        OtherModelAdmin,
        AnotherInlineModelAdmin,
     ]

 admin.site.register(MyModel, MyModelAdmin)
 admin.site.register(OtherModel, OtherModelAdmin)
 }}}

 I've created a virtualenv to use Django 1.1 and I can't see the button
 link ''Add another...''

 But, if I use Django trunk (1.2 beta 1) I can see the link and everything
 work correctly.

 I think that this ticket isn't a bug.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13041#comment:4>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to