#13720: response_change does not consider _popup=1 when saving
-------------------------------------------+--------------------------------
Reporter: donatook | Owner: nobody
Status: new | Milestone:
Component: django.contrib.admin | Version: 1.2
Resolution: | Keywords: popup response_add
response_change dismiss dismissAddAnotherPopup
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Changes (by joni):
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
I can't reproduce your problem, or maybe didn't understand it. When
clicking on the green plus button next to the selectbox you are always
creating a new record, not modifying.
I'm testing the following code (app name is ticket13720):
models.py
{{{
from django.db import models
class Animal(models.Model):
name = models.CharField(max_length=255)
type = models.ForeignKey('Type')
def __unicode__(self):
return self.name
class Type(models.Model):
name = models.CharField(max_length=255)
likes_to_eat = models.ForeignKey('Food')
def __unicode__(self):
return self.name
class Food(models.Model):
name = models.CharField(max_length=255)
def __unicode__(self):
return self.name
}}}
admin.py
{{{
from django.contrib import admin
from ticket13720.models import Animal, Type, Food
admin.site.register(Animal)
admin.site.register(Type)
admin.site.register(Food)
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/13720#comment:1>
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.