Hi! I've got 2 admin models like these:
class MyUserServiceAdminForm(forms.ModelForm): class Meta: model = UserService def clean(self): Get client_id for validation??? return cleaned_data class UserServiceAdmin(admin.TabularInline): model = UserService fields = ('service','tariff') form = MyUserServiceAdminForm class ClientAdmin(admin.ModelAdmin): #### inlines = [ UserServiceAdmin, ] I need custom validation for MyUserServiceAdminForm and I want to get client_id in clean method. The point is 'client' doesn't present in UserServiceAdmin.fields. But django gets this client_id somehow and store it in database. How can I access client_id from clean method? --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---