After solving a problem described at: http://groups-beta.google.com/group/django-users/browse_frm/thread/b453f0c91e29cc04?hl=nl
I continued developping my model. Unfortunately a new problem arose. Given the following model, I get an error message in admin after successfully saving an article and then selecting it. MenuItem matching query does not exist. The model describes an article 1to1 to menuitem and a menuitem Mt1 to itself. This way I try to get some kind of menustructure. What causes the problem? ##### model ##### from django.db import models from django.core import validators class Article(models.Model): headline = models.CharField(maxlength=200) body = models.TextField() art_image = models.CharField(maxlength=200, help_text="FileBrowser: /", blank=True, null=True) pub_date = models.DateTimeField('date published') published = models.BooleanField() def __str__(self): return self.headline class Admin: fields = ( (None, {'fields': ('headline','body','art_image')}), ('Publication information', {'fields': ('pub_date','published'), 'classes': 'collapse'}), ) date_hierarchy = 'pub_date' list_filter = ['pub_date'] search_fields = ['headine'] js = ( 'js/tiny_mce/tiny_mce.js', 'js/textareas.js', 'js/AddFileBrowser.js', ) class MenuItem (models.Model): article = models.OneToOneField(Article, edit_inline=models.TABULAR, num_in_admin=1) caption = models.CharField(maxlength=40, db_index=True, core=True) parent = models.ForeignKey('self', blank=True, null=True, related_name='child', core=True) def __str__(self): return self.caption --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---