Hi all!

I've got a webpage using django. The website worked without problems
until I installed the magic-removal. Although I obeyed everything here
http://code.djangoproject.com/wiki/RemovingTheMagic the admin panel
isn't working correctly. Here's a (shorted) code of my models:

class Thread(models.Model):
    key = models.SlugField(blank=True)
    title = models.CharField(maxlength=180,
core=True,verbose_name="titel")
    pub_date = models.DateTimeField(verbose_name='zeit', core=True)

    def __repr__(self):
        return self.title

    class Meta:
        verbose_name_plural = 'threads'
        ordering = ('-pub_date',)
        get_latest_by = 'pub_date'

    class Admin:
        list_display = ('title', author', 'pub_date')
        fields = (
            ('Thread', {'fields':
('title','views','forum','pub_date')}),
            ('Schlüssel', {'fields': ('key',), 'classes':
'collapse'}),
        )

class Post(models.Model):
    title = models.CharField(maxlength=180, core=True)
    thread = models.ForeignKey(Thread, core=True)
    pub_date = models.DateTimeField(verbose_name='zeit', core=True)
    text = models.TextField()

    def __repr__(self):
        return self.title

    class Meta:
        verbose_name_plural = 'posts'
        ordering = ('-pub_date',)
        get_latest_by = 'pub_date'

    class Admin:
        list_display = ('title', 'thread', 'pub_date')

My problem is that django shows at all ForeignKeys instead of the
__repr__ function only this: http://beewee.be.funpic.de/django2.png

Can anybody help me?

Thank you,

BeeWee


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to