On Mar 24, 5:30 pm, adam wrote:
> derek
>
> i want to do the same thing.
>
> first, the site below mentioned about
> filtering.http://patrickbeeson.com/blog/2008/aug/11/how-create-user-specific-ad...
>
> in this time, you have to give country_id as a request parameter
derek
i want to do the same thing.
first, the site below mentioned about filtering.
http://patrickbeeson.com/blog/2008/aug/11/how-create-user-specific-admin-Django/
in this time, you have to give country_id as a request parameter by
changing link url.
link url is like this:
Pardon my obtuseness, but I don't understand exactly what you
mean here.
When you say "no, but..." - do you mean it _is_ do-able as per the
method you outline here?
In the:
return super(ReqionAdmin, self).queryset(request).filter(...)
what goes in the "..." part?
Thanks.
On Feb 11, 12:25 pm,
On di, 2010-02-09 at 08:52 +0200, Derek wrote:
> Can the filter list for the Region (as shown above in the RegionAdmin
> class) be altered in some way such that it only shows those countries
> that have regions? i.e. it will not show the complete list of all
> Countrys, but only that subset which
Given a model such as:
class Country(models.Model):
code = models.CharField(max_length=2, primary_key=True)
name = models.CharField()
class Region(models.Model):
name = models.CharField()
country = models.ForeignKey(Country)
with an admin option:
class
5 matches
Mail list logo