This is embarrassing, but I've really hosed it and need to get it fixed
ASAP. So I'm calling on you all. Please don't make too much fun of me.

I was creating a new app (songs) and put this in my model:
class GpUser(models.Model):
        artist = models.ForeignKey(GpUser)
        song_file = models.FileField(upload_to='songs', blank=True, null=True,
help_text="Should be in MP3 format")
        song_title = models.CharField(maxlength=200, blank=True, null=True)

problem is, that was a cut and paste job and GpUser is a class already
used elsewhere (to extend the built-in user model).

I didn't catch it until I'd already done it and started throwing
errors. The errors said content-type was returning two entries, so I
went into the  django_content_type table in the database and removed
the gp user entry that was related to songs.

That looked good, but now I think I made it worse. If I go to Users in
the Admin and try to edit a user, I get DoesNotExist: ContentType
matching query does not exist.

If I go to a gp user profile (either in Admin or in the user section)
and try to edit that, I get
File "/home2/baxter/lib/python2.4/django/db/models/related.py", line
116, in
get_manipulator_fields
    if follow.get(f.name, False):

AttributeError: 'bool' object has no attribute 'get'

How do I get back on track?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to