Panos, On 10/8/06, Panos Laganakos <[EMAIL PROTECTED]> wrote: > > What I'm doing is this: > > class Dvd(models.Model): > pass > > > class File(models.Model): > #... > dvd = models.ForeignKey('Dvd', blank=True, null=True) > > [...] > > Problem is, I'm not sure how to define something to 'class Admin:' of > Dvd's class, in order to lemme create a new dvd object, to put link > with the files. Also on File's admin interface, while some other > foreign keys, offer me to creat an object of their type (by supplying > an addition mark next to them), the Dvd field, doesn't seem to offer > one. >
Try using the same pattern you' ve used with the Dvd class with the inner Admin class, like this: class Dvd(models.Model): pass class Admin: pass That should solve both problems (that really are of the same issue, when an admin view has been activated/defined for a model, the green plus shortcut appears nesides the FK field area in the admin views of the models related to it). HTH -- Ramiro Morales --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---