Below I have posted a short form of my modules. In the admin backend, when a user goes in to the Vehicle form the company field should be filled with the users own company data but the admin should still get the select box.
This is a big one then I don't have to create all the forms and can just give users limited access to the admin backend. Thanks. ============= class Vehicle(models.Model): name = models.CharField(maxlength=30 company = models.ForeignKey(Company) class Meta: verbose_name = _('Vehicle') verbose_name_plural = _('Vehicles') class Admin: list_display = ('name', 'company') def __str__(self): return self.name class Company(models.Model): name = models.CharField(maxlength=30) owner = models.ForeignKey(User) class Meta: verbose_name = _('Company') verbose_name_plural = _('Companies') class Admin: list_display = ('name', 'owner') search_fields = ['code'] def __str__(self): return self.name ==================== --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---