Hi,

I'm having a similar problem to this thread below:
http://groups.google.com/group/django-users/browse_thread/thread/608554256525c37e/6c944a02a622ba53?lnk=gst&q=edit_inline+does+not+save&rnum=1#6c944a02a622ba53

For my problem, I'm creating a GroupProfile, similar to the well known
UserProfile. I want GroupProfile to be editable in the admin with
Group, so I use edit_inline. Below is the snippet of my code:

from django.contrib.auth.models import Group

class GroupProfile(models.Model):
    group = models.ForeignKey(Group, unique=True,
                              edit_inline=True, num_in_admin=1,
core=True)
    secret_key = models.CharField(maxlength=8, blank=True, null=True,
core=True)
    creation_date = models.DateField(auto_now_add=True, core=True)
    expiry_date = models.DateField(blank=True, null=True, core=True)

    def __unicode__(self):
        return "Group Profile for %s" % self.group.name

Whenever I edit any field in GroupProfile, for example secret_key,
GroupProfile does not get saved.

I'm using the current SVN version of Django, revision 5758. Does
anyone have any suggestions?  Can someone reproduce this?

Thanks!
Justin


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

Reply via email to