Re: Add filter to admin add page?

2019-10-29 Thread Derek
It is not clear if those fields can be used in the admin list interface drop-down filters - is there a link to documentation for that? On Wednesday, 23 October 2019 16:13:13 UTC+2, Nelson Varela wrote: > > Or even better... whu not use django's own auto complete feature in the > admin: > https:

Re: Add filter to admin add page?

2019-10-23 Thread Nelson Varela
Or even better... whu not use django's own auto complete feature in the admin: https://docs.djangoproject.com/en/2.2/ref/contrib/admin/#django.contrib.admin.ModelAdmin.autocomplete_fields Op dinsdag 22 oktober 2019 00:07:40 UTC+2 schreef Wil Moskal: > > I have a model registered to the admin pag

Re: Add filter to admin add page?

2019-10-23 Thread Derek
For your filter problem, you probably need to use: https://github.com/farhan0581/django-admin-autocomplete-filter On Tuesday, 22 October 2019 00:07:40 UTC+2, Wil Moskal wrote: > > I have a model registered to the admin page, AuthUserFilePermissions, > which consists of 2 foreign keys, a key to

Add filter to admin add page?

2019-10-21 Thread Wil Moskal
I have a model registered to the admin page, AuthUserFilePermissions, which consists of 2 foreign keys, a key to the defined groups, and a key to the filepatterns. Within the add AuthUserFilePermissions, there is a select for each. For the group this is fine, as there is only like 7-8. for the f

Re: Is passing values into the admin add page possible?

2010-05-11 Thread nih
rote: > > > I've got a python program that starts up a django web app, I'm trying > > to figure out how to pass values from the program to the web app so > > some fields in the admin add page are automatically populated with > > values from the program, is t

Re: Is passing values into the admin add page possible?

2010-05-09 Thread leveille
On May 9, 4:58 am, nih wrote: > I've got a python program that starts up a django web app, I'm trying > to figure out how to pass values from the program to the web app so > some fields in the admin add page are automatically populated with > values from the program, i

Is passing values into the admin add page possible?

2010-05-09 Thread nih
Hi all I've got a python program that starts up a django web app, I'm trying to figure out how to pass values from the program to the web app so some fields in the admin add page are automatically populated with values from the program, is the only way via url parameters?, I sense its

Re: Admin Add Page

2010-03-31 Thread Asim Yuksel
6 pm, Asim Yuksel wrote: > > > I want to use a custom admin add page with custom admin look and feel. > > What is the template to extend? I want to use something like this > > >http://picasaweb.google.com/110428031719333287170/BaslKsZAlbum#545448... > > > I tried t

Re: Admin Add Page

2010-03-31 Thread Brandon Taylor
/#overriding-vs-replacing-an-admin-template Cheers, Brandon On Mar 30, 1:16 pm, Asim Yuksel wrote: > I want to use a custom admin add page with custom admin look and feel. > What is the template to extend? I want to use something like this > > http://picasaweb.google.com/110428031

Admin Add Page

2010-03-30 Thread Asim Yuksel
I want to use a custom admin add page with custom admin look and feel. What is the template to extend? I want to use something like this http://picasaweb.google.com/110428031719333287170/BaslKsZAlbum#5454485792741726834 I tried to hack the html by viewing the source but it is time consuming and

Re: Filtering the admin "add" page with manytomany foreign key attribute

2009-02-06 Thread Grimmo
Hi! Thanks it works like a charm now! One last thing.. what if I want its effects to be limited only to the "add a new" admin page, and not to the "change" one? This solution always limits the query regarding of how many foreign keys exist when modifying an existing media object, sorry for not po

Re: Filtering the admin "add" page with manytomany foreign key attribute

2009-02-05 Thread Rajesh Dhawan
On Feb 5, 8:25 am, Grimmo wrote: > Hi, > I have these models for my application: > > class Movie (models.Model): > Title = models.CharField(max_length=100) > Director = models.CharField(max_length=100,blank=True) > Year = models.CharField(max_length=100,blank=True) >

Filtering the admin "add" page with manytomany foreign key attribute

2009-02-05 Thread Grimmo
Hi, I have these models for my application: class Movie (models.Model): Title = models.CharField(max_length=100) Director = models.CharField(max_length=100,blank=True) Year = models.CharField(max_length=100,blank=True) Backed_up = models.BooleanField(default=True)