title: admin for editing particular user
body: <p>I have users signed up to my site. I want to be able to edit their "bids". Basicaly, I want to be able to go to admin/user/user-bid/73 where 73 is a particular user's id and be able to edit their bid info. How can I do that?</p>
  
  <p>I have the following in admin.py:</p>
  
  <pre><code>class UserBidAdmin(admin.ModelAdmin):
      def queryset(self, request):
          return self.model.objects.filter(user = request.user)
  
  create_modeladmin(UserBidAdmin, name='user-bid', model=Bid)
  
  
  
  def create_modeladmin(modeladmin, model, name = None):
      class  Meta:
          proxy = True
          app_label = model._meta.app_label
  
      attrs = {'__module__': '', 'Meta': Meta}
  
      newmodel = type(name, (model,), attrs)
  
      admin.site.register(newmodel, modeladmin)
      return modeladmin
  </code></pre>
  
  <p>Thanks.</p>