Re: Models in admin view

2019-03-03 Thread 'Amitesh Sahay' via Django users
b wrote: I have created two apps with the name candidate and another training. In the Django admin I want to create trainings and add candidates to that. I have created candidate and training and registered in the admin view. But for the last part I want to add multiple candidates into

Re: Models in admin view

2019-03-01 Thread Andréas Kühne
the name candidate and another training. In > the Django admin I want to create trainings and add candidates to that. I > have created candidate and training and registered in the admin view. But > for the last part I want to add multiple candidates into a training from > admin vi

Models in admin view

2019-03-01 Thread raghav b
I have created two apps with the name candidate and another training. In the Django admin I want to create trainings and add candidates to that. I have created candidate and training and registered in the admin view. But for the last part I want to add multiple candidates into a training from

how to use admin view as part of app

2017-09-06 Thread 1351552...@qq.com
hello I want use a admin edit view in my app,when edit done ,it will back to admin list view, how can it back to my app.listview. wblueboat -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving e

Re: How to have Multiple models in Admin View

2016-08-18 Thread ludovic coues
multiple models in one admin view in django. > when I do this: > > admin.site.register(Language) > admin.site.register(Word) > admin.site.register(Translation) > > > b > > It would register 3 different models. > > My models look like this (this is for a dictionar

How to have Multiple models in Admin View

2016-08-18 Thread Hanh Kieu
I'm a little new to django. I would like to display multiple models in one admin view in django. when I do this: admin.site.register(Language) admin.site.register(Word) admin.site.register(Translation) b It would register 3 different models. My models look like this (this is for a dicti

Re: view queryset object in admin view

2015-04-13 Thread makayabou
>> >> >> #In admin.py: >> >> >> class PcAdmin(admin.ModelAdmin): >> list_display = ('users','id') >> [/code] >> >> Still have this weird print: >> > >> >> instead of: >> Jean Dubois >>

Re: view queryset object in admin view

2015-04-13 Thread makayabou
gt; > > instead of: > Jean Dubois > > thank you for help > > Le lundi 13 avril 2015 07:57:00 UTC+2, Avraham Serour a écrit : >> >> Well, your class User doesn't have an attribute name you are using on the >> method __unicode__, you should define and set the

Re: view queryset object in admin view

2015-04-13 Thread Jani Tiainen
r help > > Le lundi 13 avril 2015 07:57:00 UTC+2, Avraham Serour a écrit : > > > > Well, your class User doesn't have an attribute name you are using on the > > method __unicode__, you should define and set the attribute name with > > something like a textfield

Re: view queryset object in admin view

2015-04-13 Thread makayabou
uld define and set the attribute name with > something like a textfield > On Apr 13, 2015 3:21 AM, "makayabou" > > wrote: > >> Hello, >> >> Sorry for the previous send unattended... >> >> I have problems trying to print values of a QUerySet

Re: view queryset object in admin view

2015-04-12 Thread Avraham Serour
t; > I have problems trying to print values of a QUerySet Object in Admin View. > > In admin view, I would like to get a clear list of results, >> as defined in __unicode__ from class User. >> Instead, I get: >> >> > >> >> I just need Jean Dubois..

Re: view queryset object in admin view

2015-04-12 Thread makayabou
Hello, Sorry for the previous send unattended... I have problems trying to print values of a QUerySet Object in Admin View. In admin view, I would like to get a clear list of results, > as defined in __unicode__ from class User. > Instead, I get: > > > > > I just need Jea

view queryset object in admin view

2015-04-12 Thread makayabou
# Je voudrais, dans ma vue admin, avoir un affichage clair des maintenances # effectuées, qui corresponde à __unicode__ définie dans Ordi # mais j'ai : In admin view, I would like to get a clear list of results, as defined in __unicode__ from class User. Instead, I get: > I just n

Re: Customise admin view

2014-09-18 Thread Salvatore DI DIO
That's great Thank you very very much Helton Le jeudi 18 septembre 2014 15:44:44 UTC+2, Helton Alves a écrit : > > I think this will resolve your problem. :D > > in admin, you use the get_queryset. > in this case return only items of user, you can change this for return the > items that user h

Re: Customise admin view

2014-09-18 Thread Helton Alves
I think this will resolve your problem. :D in admin, you use the get_queryset. in this case return only items of user, you can change this for return the items that user have permission. class MyModelAdmin(admin.ModelAdmin): def queryset(self, request): qs = super(MyModelAdmin, self).

Re: Customise admin view

2014-09-18 Thread Salvatore DI DIO
Hy Elton, In fact each image belongs to an album. Let us say I have three album ALB1 ALB2 ALB3 In the admin form, when I add an image I can attach it to either of each Albums or all the three if I want What I would like is show the album list for a particuliar user. For example Tom could only

Re: Customise admin view

2014-09-18 Thread Helton Alves
I didn't understand very well. would you like the image of the tutorial? 2014-09-18 9:59 GMT+01:00 Salvatore DI DIO : > Hello, > > I am following a 'photo application' tutorial : > http://lightbird.net/dbe/photo.html > I have created several 'albums' to insert images in. > > I would like those al

Customise admin view

2014-09-18 Thread Salvatore DI DIO
Hello, I am following a 'photo application' tutorial : http://lightbird.net/dbe/photo.html I have created several 'albums' to insert images in. I would like those albums beeing displayed in the admin panel according to each user or group Thank your for your help regards -- You received th

Re: Filter ForeignKey values in model's admin view

2013-11-19 Thread tim
contact_primary = models.ForeignKey(Contact) > > In the admin interface I can select a number of Contacts for the contacts > field and then I want to see only these selected contacts in the > contact_primary dropdown. Not necessarily immediately but definitely on > subsequent

Re: Filter ForeignKey values in model's admin view

2013-11-19 Thread Michal Ludvig
rily immediately but > definitely on subsequent admin view reloads. As it is now I can see > all my Contacts, whether they're selected in the ManyToMany field or not. > > How can I restrict the Contacts displayed for contact_primary only to > those selected in contacts? >

Filter ForeignKey values in model's admin view

2013-11-18 Thread Michal Ludvig
gnKey(Contact)| In the admin interface I can select a number of Contacts for the contacts field and then I want to see only these selected contacts in the contact_primary dropdown. Not necessarily immediately but definitely on subsequent admin view reloads. As it is now I can see all my Contacts, wh

Re: Groups Model Randomly Disappears In the Admin View

2013-07-19 Thread 刘是
30日星期二UTC+8下午10时44分46秒,Laurence写道: >>> >>> I have a very strange problem that I am having difficultly in >>> debugging. In my application I have registered two models, each of >>> which contains two classes. When I go to the admin view, the groups >>> class fr

Re: Groups Model Randomly Disappears In the Admin View

2013-07-19 Thread 刘是
When I go to the admin view, the groups > class from the auth model sometimes disappears. If I keep refreshing, > it will appear then disappear almost randomly. Does anyone know what > the cause might be or how I can debug this. I am using Django v1.2.5. > > Thanks, > > Laur

Groups Model Randomly Disappears In the Admin View

2011-08-30 Thread Laurence
I have a very strange problem that I am having difficultly in debugging. In my application I have registered two models, each of which contains two classes. When I go to the admin view, the groups class from the auth model sometimes disappears. If I keep refreshing, it will appear then disappear

How to make geodjango databrowse admin view GeometryCollection Field data ?

2011-06-15 Thread Satyajit Sarangi
The present databrowse doesnt load if the model has anything apart from point . How to make it load for polygon , line string and GeometryCollectionField ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djan

grouping results in change_list admin view

2011-02-25 Thread Dan Christensen
I'd like to group the results shown on the admin change_list view according to one (or more) fields. For example, if my model had author and title fields, I might like a display that looks like: Author1: Book1 Book2 Book3 Author2: Book4 Author3: Book5 Book6 So each author name appear

Re: admin view

2010-12-07 Thread commonzenpython
thanks for your reply, iv been reading the documentation, and wrote the code, but theres one thing im having trouble with, i included the signal connection in my models.py, and passed the model that was there to the handler function so that it can be tied to that specific model, like so class foo(

Re: admin view

2010-12-07 Thread Wayne Smith
To fire off an action (method) after an object is saved, you want to listen for its signal. Check out http://docs.djangoproject.com/en/dev/topics/signals/ On Mon, Dec 6, 2010 at 11:28 PM, commonzenpython wrote: > hey guys, im trying to get a script to run, like a view after a user > in the admi

admin view

2010-12-06 Thread commonzenpython
hey guys, im trying to get a script to run, like a view after a user in the admin interface checks a box and saves the object, is there any way of accomplishing this without having to rewrite the add_view, and edit_view ? -- You received this message because you are subscribed to the Google Grou

Re: Searching in Admin View --- Foreign Key

2010-07-23 Thread Karen Tracey
On Wed, Jul 21, 2010 at 10:33 AM, Michael wrote: > Is there a way to search on the Foreign Key's __str__ representation > in admin views? I have the FK listed in the search_fields but it fails > to find it. > > First, you probably want to be implementing __unicode__ methods for your models, not _

Register Multiple ModelAdmins for a Table or Create a Admin View for a "Query"

2010-07-21 Thread Michael
Hello, I have two tables... one contains information about a Family and the other has all the Financial Records for them. I am trying to figure out (while staying within the framework/interface of the Admin Model) to pull the two tables together... My thoughts were that for the Family model/table

Searching in Admin View --- Foreign Key

2010-07-21 Thread Michael
Is there a way to search on the Foreign Key's __str__ representation in admin views? I have the FK listed in the search_fields but it fails to find it. Thanks, Michael -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Searching in Admin View --- Foreign Key

2010-07-21 Thread Michael
Is there a way to search on the Foreign Key's __str__ representation in admin views? I have the FK listed in the search_fields but it fails to find it. Thanks, Michael -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: what's the right way to extend an admin view with AJAX?

2010-03-01 Thread Derek
> > extending admin. Hopefully someone will point you in the write direction. >> >> > > On Fri, Feb 26, 2010 at 11:06 AM, snfctech >> > > wrote: >> > > > (Disclamor: I am new to Python/Django.  Used to PHP/MVC ways of doing >> > > > thin

Re: what's the right way to extend an admin view with AJAX?

2010-03-01 Thread snfctech
; find the write ways to extend what you specifically want. Don't give up on > > > extending admin. Hopefully someone will point you in the write direction. > > > > On Fri, Feb 26, 2010 at 11:06 AM, snfctech > > > wrote: > > > > (Disclamor: I am new to

Re: what's the right way to extend an admin view with AJAX?

2010-03-01 Thread derek
#x27;t give up on > > extending admin. Hopefully someone will point you in the write direction. > > > On Fri, Feb 26, 2010 at 11:06 AM, snfctech wrote: > > > (Disclamor: I am new to Python/Django.  Used to PHP/MVC ways of doing > > > things.) > > > >

Re: what's the right way to extend an admin view with AJAX?

2010-02-26 Thread snfctech
rite direction. > > On Fri, Feb 26, 2010 at 11:06 AM, snfctech wrote: > > (Disclamor: I am new to Python/Django.  Used to PHP/MVC ways of doing > > things.) > > > I want to customize the admin view, because it already does >50% of > > what I want for my appli

Re: what's the right way to extend an admin view with AJAX?

2010-02-26 Thread Timothy Kinney
or: I am new to Python/Django. Used to PHP/MVC ways of doing > things.) > > I want to customize the admin view, because it already does >50% of > what I want for my application. > > So, do I... > > 1. Alter the HTML sent to the template? > > One of the first things I

what's the right way to extend an admin view with AJAX?

2010-02-26 Thread snfctech
(Disclamor: I am new to Python/Django. Used to PHP/MVC ways of doing things.) I want to customize the admin view, because it already does >50% of what I want for my application. So, do I... 1. Alter the HTML sent to the template? One of the first things I want to do is add an AJAX oncl

Re: Showng the primary key in admin view

2009-09-02 Thread Mike Dewhirst
Joakim Hove wrote: > > > Hello, > > thanks for the tip: > >> It is usually not a good idea to give business meaning to a primary key >> in a relational database. The literature is full of reasons against it. > > I had a nagging feeling this might be the case. Do you have any links > to "Best

Re: Showng the primary key in admin view

2009-09-02 Thread Joakim Hove
Hello, thanks for the tip: > It is usually not a good idea to give business meaning to a primary key > in a relational database. The literature is full of reasons against it. I had a nagging feeling this might be the case. Do you have any links to "Best practice" om these questions - I am a d

Re: Showng the primary key in admin view

2009-09-02 Thread Joakim Hove
> and if you look up-screen at the "breadcrumbs" you should see ... > > Home >> Customers >> 2: George > > Does that do it? Well - I know (and thanks for the info) - but I would really like to get it even clearer. Joakim --~--~-~--~~~---~--~~ You received this me

Re: Showng the primary key in admin view

2009-09-02 Thread Mike Dewhirst
of your own to contain the customer id? It would probably survive dumping and reloading between different databases. Mike I have tried > to instantiate a CustomerAdmin class and listed the "id" field, there > but that only gives run time error. It seems the admin view/template &g

Re: Showng the primary key in admin view

2009-09-02 Thread Mike Dewhirst
[ 27/08/2009 ] > Email: [ geo...@mail.com ] > > Now - it is in this view I would have liked to display the primary key > as well (the primary key serves as kind of customer id). I have tried > to instantiate a CustomerAdmin class and listed the "id" field, there > b

Re: Showng the primary key in admin view

2009-09-02 Thread Joakim Hove
there but that only gives run time error. It seems the admin view/template does not recognize the id which is an AutoField. OK - thanks a lot for your time - further suggestions greatly appreciated! Joakim --~--~-~--~~~---~--~~ You received this message becaus

Re: Showng the primary key in admin view

2009-09-01 Thread Antoni Aloy
 email  =   models.EmailField() >> >> >> When showing this in the (100 % default) admin view I get up nice >> entry boxes for the fields 'name', 'date' and 'email'. In addition I >> would very much like to display the 'id' f

Re: Showng the primary key in admin view

2009-09-01 Thread Mike Dewhirst
Joakim Hove wrote: > Hello, > > I have a (simplified) model like this > > class Customer(models.Model): > name = models.CharField(max_length = 100) > date= models.DateTimeField() > email = models.EmailField() > > > When showing this

Showng the primary key in admin view

2009-09-01 Thread Joakim Hove
Hello, I have a (simplified) model like this class Customer(models.Model): name = models.CharfField(max_length = 100) date= models.DateTimeField() email = models.EmailField() When showing this in the (100 % default) admin view I get up nice entry boxes for the

Re: How to extend Auth/User in admin view?

2009-08-18 Thread Léon Dignòn
Forget my previous post. Now that I got it working I have one more question! (btw, I needed to restart the server for the changes to take effect) This is my code: from django.contrib import admin from myproject.myapp.models import Car, Manufacturer, UserProfile from django.contrib.auth.a

Re: How to extend Auth/User in admin view?

2009-08-18 Thread Léon Dignòn
Hi Daniel, I have trouble doing this: 1. admin.site.unregister(User) does not remove User from the admin interface. It is still visible. I removed all code and used only this line and the import... line. Nothing happens. 2. Is this code correct? from django.contrib import admin from myproject

Re: How to extend Auth/User in admin view?

2009-08-17 Thread Daniel Roseman
On Aug 17, 8:06 am, Léon Dignòn wrote: > Hello, > > I use an extended User Model and like to display these fields in the > admin view at Auth/User. Can anybody show me how this works? > > Thanks > > -LD Create your own admin class for your extended User model, in

How to extend Auth/User in admin view?

2009-08-17 Thread Léon Dignòn
Hello, I use an extended User Model and like to display these fields in the admin view at Auth/User. Can anybody show me how this works? Thanks -LD --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: creating automatically url for additional column in admin view

2009-08-04 Thread Sławek Tuleja
nice! thank you krylatij! On 4 Sie, 14:56, krylatij wrote: > Look > athttp://docs.djangoproject.com/en/dev/ref/contrib/admin/#reversing-adm... > > It will be like this: > > from django.core import urlresolvers > > my_url = "%s?tender__id__exact=%s" % ( >     urlresolvers.reverse('admin:tender_d

Re: creating automatically url for additional column in admin view

2009-08-04 Thread krylatij
Look at http://docs.djangoproject.com/en/dev/ref/contrib/admin/#reversing-admin-urls It will be like this: from django.core import urlresolvers my_url = "%s?tender__id__exact=%s" % ( urlresolvers.reverse('admin:tender_download_changelist'), self.id ) --~--~-~--~~--

creating automatically url for additional column in admin view

2009-08-04 Thread Sławek Tuleja
Hi All! In admin.py I created special column named 'downloading list' class TenderAdmin(...): # in this column I show url to all downloads for tender list_display = ( , 'downloading_list',) def downloading_list(self, obj): return obj.get_downloading_list_url()

Re: How to doing something after change db record with admin view?

2009-06-25 Thread Shuge Lee
I want to redirect with HttpResponseRedirect or stop and display a error message in admin view, when user change some record in admin view while it not means some conditions. I try to rewrite save() in models.py class Seed(models.Model): def save(self): if os.path.exist

Re: How to doing something after change record of DB with admin view?

2009-06-11 Thread Rama Vadakattu
>From my point of view use of signals correctly fit your needs. On Jun 12, 5:31 am, Shuge Lee wrote: > For some reason, I want to create a static file after user change > record of DB with admin view, I need to use > signalhttp://docs.djangoproject.com/en/dev/topics/signals/#to

How to doing something after change record of DB with admin view?

2009-06-11 Thread Shuge Lee
For some reason, I want to create a static file after user change record of DB with admin view, I need to use signal http://docs.djangoproject.com/en/dev/topics/signals/#topics-signals , or other stuff? --~--~-~--~~~---~--~~ You received this message because you

Re: How to doing something after change db record with admin view?

2009-06-11 Thread Jashugan
On Jun 11, 3:13 am, Shuge Lee wrote: > For some reason, I want to create a static file after user change > record of DB with admin view, I need to use > signalhttp://docs.djangoproject.com/en/dev/topics/signals/#topics-signals Yeah signals would

How to doing something after change db record with admin view?

2009-06-11 Thread Shuge Lee
How to doing something after change record of DB with admin view? For some reason, I want to create a static file after user change record of DB with admin view, I need to use signal http://docs.djangoproject.com/en/dev/topics/signals/#topics-signals , or other stuff

Re: limiting choices for foreign key choices in the admin view

2009-05-08 Thread Margie
yes, gotcha - that makes sense. Thanks. Margie On May 7, 10:59 pm, George Song wrote: > On 5/7/2009 9:19 PM, Margie wrote: > > > > > Thanks much George, that was a big help.  I have some "proof of > > concept code below" that simply limits choices to the first four > > users, and I have verifi

Re: limiting choices for foreign key choices in the admin view

2009-05-07 Thread George Song
On 5/7/2009 9:19 PM, Margie wrote: > Thanks much George, that was a big help. I have some "proof of > concept code below" that simply limits choices to the first four > users, and I have verified that that works. > > class TaskAdmin(admin.ModelAdmin): > > def formfield_for_dbfield(self, db_

Re: limiting choices for foreign key choices in the admin view

2009-05-07 Thread Margie
Thanks much George, that was a big help. I have some "proof of concept code below" that simply limits choices to the first four users, and I have verified that that works. class TaskAdmin(admin.ModelAdmin): def formfield_for_dbfield(self, db_field, **kwargs): if db_field.name == "ow

Re: limiting choices for foreign key choices in the admin view

2009-05-07 Thread George Song
On 5/7/2009 6:29 PM, Margie wrote: > I know this question has been pondered in a bunch of posts, and I'm > sorry to repeat it, but I just can't figure out what is the right > direction to take. > > Let's say I have a model for a Task: > > class Task(models.Model): > owner = models.ForeignKey

limiting choices for foreign key choices in the admin view

2009-05-07 Thread Margie
I know this question has been pondered in a bunch of posts, and I'm sorry to repeat it, but I just can't figure out what is the right direction to take. Let's say I have a model for a Task: class Task(models.Model): owner = models.ForeignKey('auth.User') resources = models.ManyToManyFiel

How to overwrite app admin view

2009-05-05 Thread Laszlo Antal
Hi, I need to overwrite one of my app admin view. I allready changed the template but I need more control for the display of the data. For the templates I just had to create a directory under /templates/admin/appname Where do I need to put my admin view file? How could I overwrite only the

Re: Admin view: History log

2009-04-05 Thread Karen Tracey
On Sun, Apr 5, 2009 at 4:08 AM, EagerToUnderstand wrote: > > With regards to the history log on models in the admin view. > > I am adding instances of models via the db api (model.save()) > method. When such a model is opened (but not edited) and then saved > for the first

Admin view: History log

2009-04-05 Thread EagerToUnderstand
With regards to the history log on models in the admin view. I am adding instances of models via the db api (model.save()) method. When such a model is opened (but not edited) and then saved for the first time in the admin model view a history log entry is created showing ALL elements of the

Re: Pass Variables to Admin view

2009-02-06 Thread Ales Zoulek
6, 2009 at 11:51 AM, Alfonso wrote: > > I'd like to pass a variable to a django admin view to preset some > fields on an 'Add a product' form. > > Example: > > An order has come in for 10 Pearl Jam CDs - I have a url that points > to /admin/order/add/ to giv

Pass Variables to Admin view

2009-02-06 Thread Alfonso
I'd like to pass a variable to a django admin view to preset some fields on an 'Add a product' form. Example: An order has come in for 10 Pearl Jam CDs - I have a url that points to /admin/order/add/ to give the admin staff access to 'create a new order'. Fine, works

Re: Admin view - merge two tables? (potentially bad db design)

2009-02-02 Thread Carl Meyer
On Feb 2, 6:44 pm, Zbigniew Braniecki wrote: > How can I overwrite the way Questions are selected so that when they > are returned by Question.objects.get('x') or Question.objects.filter() > or Question.objects.all() they are already joined with > QuestionProperties values? Try select_related()

Re: Admin view - merge two tables? (potentially bad db design)

2009-02-02 Thread Zbigniew Braniecki
On Feb 2, 7:24 am, Carl Meyer wrote: (...) > The other downside is the extra administration complexity, which is > the meat of your question.  Fortunately Django's admin can help you > out, and it's quite easy: look into inlines[1]. > > [1]http://docs.djangoproject.com/en/dev/ref/contrib/admin/#

Re: Admin view - merge two tables? (potentially bad db design)

2009-02-02 Thread Carl Meyer
This database design will result in lots of joins, but it's perfectly normalized and very flexible. Fine if you expect low traffic and you need the flexibility. The other downside is the extra administration complexity, which is the meat of your question. Fortunately Django's admin can help you

Admin view - merge two tables? (potentially bad db design)

2009-02-02 Thread Zbigniew Braniecki
tirely sure if that's the very best db design ever :/ Second, I need to be able to present all "properties" in Admin view in Django. So I'd like to tell django to look for fields that are in QuestionProperties and values for given question_id and display them together with field

Re: display m2M in admin view in 0.96

2008-06-22 Thread bussiere maillist
i will try tomorow thanks On Sun, Jun 22, 2008 at 6:42 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Sun, Jun 22, 2008 at 6:19 AM, bussiere maillist > <[EMAIL PROTECTED]> wrote: >> >> how can i display object in a m2M field ? >> i've tried with the dem function but it didn't work >> >> regards

Re: display m2M in admin view in 0.96

2008-06-22 Thread Karen Tracey
On Sun, Jun 22, 2008 at 6:19 AM, bussiere maillist < [EMAIL PROTECTED]> wrote: > > how can i display object in a m2M field ? > i've tried with the dem function but it didn't work > > regards > Bussiere > > class Agent(models.Model): >nom = models.CharField(maxlength=60) >service = models.F

display m2M in admin view in 0.96

2008-06-22 Thread bussiere maillist
how can i display object in a m2M field ? i've tried with the dem function but it didn't work regards Bussiere class Agent(models.Model): nom = models.CharField(maxlength=60) service = models.ForeignKey(Service) telephone = models.CharField(maxlength=60,blank=True,null=True) emai

Re: Trying to limit choices in my admin view

2008-01-08 Thread David Grant
So you get are getting 1000 records back in javascript, then doing the filtering in Javascript down to 100? But instead you want to have your ajax code talk to a view that will return you just the 100 records that you want? Makes sense to me. Would you mind sharing your javascript code with me? I'

Trying to limit choices in my admin view

2008-01-08 Thread Greg
Hello, I developed an AWESOME django website and everything works great except for one MAJOR problem!! I have the following models: class Collection(models.Model): name = models.CharField("Name", maxlength=200) description = models.TextField(maxlength=1000, blank=True) class Choice(mode

Re: admin urls in my own admin view

2008-01-03 Thread Nianbig
;title" %} {{ book }} {% endfor %} {% endfor %} {% endblock %} On Jan 3, 1:44 am, Nianbig <[EMAIL PROTECTED]> wrote: > Hi > > I´m building my own admin view... I have followed this > tutorial:http://www.djangobook.com/en/1.0/chapter17/. Everything works

admin urls in my own admin view

2008-01-02 Thread Nianbig
Hi I´m building my own admin view... I have followed this tutorial: http://www.djangobook.com/en/1.0/chapter17/. Everything works fine except that all urls in the header, the "home" link, "change password" link, "logout" link doesn't work for some reasen.

Re: How do you add the edit of another object from another object's admin view

2007-12-17 Thread Brian Rosner
On 2007-12-17 11:34:47 -0700, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> said: > > Dear all, > > I have two object : > > 1. contacts > 2. phone number > > contacts and phone number is linked via a primary key foreign key > connection with the primary key in contacts. The way the admin > interfa

How do you add the edit of another object from another object's admin view

2007-12-17 Thread [EMAIL PROTECTED]
Dear all, I have two object : 1. contacts 2. phone number contacts and phone number is linked via a primary key foreign key connection with the primary key in contacts. The way the admin interface is done now is that the contact object has an add function and the contacts too has an add functio

Re: Adding a custom admin view to the admin app listing

2007-09-19 Thread Christopher Allan Webber
Sure, we can do this, but this doesn't provide a nice application-level way of adding this to the admin listing. At the company I work for, we have over 100 websites we deploy for (and we are just starting to transition to Django). We deploy each application individually depending on a client's

Re: Adding a custom admin view to the admin app listing

2007-09-19 Thread olivier
Hi, > But I want it to be listed along with the rest of the admin listing > for that app. I may not have understood what you have in mind, but why don't you add something after the line 39 of contrib/admin/templates/index.html (or actually your copy of it): {% for model in app.models %} ...

Adding a custom admin view to the admin app listing

2007-09-19 Thread Christopher Allan Webber
Hello, For a project we're working on, we need a custom view that's available only to administrators. It's not the traditional add/edit/delete stuff, and the generic admin interface doesn't cut it. That's fine, I can write my own view. (They need to upload a CSV file, which adds and updates so

How can I group fields in admin view of edit_inline foreign models?

2007-06-25 Thread Nash
How can I group fields in admin view of edit_inline foreign models? The fields tuple in admin takes fields; can I specify foreign models which have edit_inline in them? Thanks for your help as always --~--~-~--~~~---~--~~ You received this message because you

Custom admin view - sorting, filters, and search

2007-06-19 Thread Vincent Nijs
The admin change list pages you get 'for free' when you add: class Admin: list_display = ( ... ) list_filter = ( ... ) search_fields = ( ... ) to your model are really nice. I'd like to add these features to my custom admin pages as well. I am getting part of the way there to sort th

Q: customize admin view of django.contrib.auth

2007-05-25 Thread Mikhail Gusarov
Hi, Is there way to customize admin interface for django.contrib.auth? We are using external authentication and authorization database, so several options in admin interface are to be hidden (user's password, permissions, 'add group' button etc), other are to be read-only (user's staff/active st

Re: Filter choices based on another selection in the Admin view

2007-02-28 Thread Jeremy Dunck
On 2/28/07, Jay <[EMAIL PROTECTED]> wrote: > > My application has companies and aircraft, where aircraft has a > foreign key to a company. When a user is creating a trip, both a > company and an aircraft can be selected from drop-down lists. I'd like > to modify so that after the company is select

Filter choices based on another selection in the Admin view

2007-02-28 Thread Jay
My application has companies and aircraft, where aircraft has a foreign key to a company. When a user is creating a trip, both a company and an aircraft can be selected from drop-down lists. I'd like to modify so that after the company is selected the choices for aircraft are only those aircraft t

Re: quick admin view question

2007-01-10 Thread Honza Král
have a look at verbose_name: http://www.djangoproject.com/documentation/model_api/#verbose-name class Meta: verbose_name = 'Some Fancy Title' On 1/10/07, Mae <[EMAIL PROTECTED]> wrote: > > Hi all, > > This might have been answered before, but I can't seem to find the > answer. If I'm repe

Re: quick admin view question

2007-01-10 Thread Mae
Oh, that's exactly what I was looking for! W! Thank you, Mae --~--~-~--~~~---~--~~ 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 unsubsc

quick admin view question

2007-01-10 Thread Mae
Hi all, This might have been answered before, but I can't seem to find the answer. If I'm repeating another topic, I apologize in advance. Here's what I'd like to do: I have a model that goes: # represents a reference document in the library class Reference(models.Model): name = models

Re: Extrange behavior with get 'self' FK in admin view

2006-12-24 Thread Jorge Gajon
Hi, On 12/20/06, ElGranAzul <[EMAIL PROTECTED]> wrote: Hi, i've and extrange behavior with admin views with the following code: I copied your code to a test project, added the missing Country and Island objects and tried it but I could not reproduce your problem, everything works fine here.

Extrange behavior with get 'self' FK in admin view

2006-12-23 Thread ElGranAzul
Hi, i've and extrange behavior with admin views with the following code: class Subdivision(models.Model): code = models.CharField(_('Code'), maxlength=10, primary_key=True) name = models.CharField(_('Name'), maxlength=100, core=True) stype = models.CharField(_('Type'), maxlength=3, choi

Re: Adding a button to admin view?

2006-11-15 Thread Jay Parlar
> On 10/31/06, iain duncan <[EMAIL PROTECTED]> wrote: > > > > Hi folks, I would like to add a custom form button to the admin > > interface somehow and am not sure how to go about it. > > > > I want to add a "download now" button the list view for some file > > entries, so it needs to be a link to

Re: Adding a button to admin view?

2006-11-15 Thread Andy Dustman
it needs to be a link to file. Any idea how this should be > done? I'm looking to do something similar: I have an object that I'd like to synchronize against an external database. Currently I do this with a special view, but it would be nice to have a button in the admin view to do thi

Adding a button to admin view?

2006-10-31 Thread iain duncan
Hi folks, I would like to add a custom form button to the admin interface somehow and am not sure how to go about it. I want to add a "download now" button the list view for some file entries, so it needs to be a link to file. Any idea how this should be done? Thanks Iain --~--~-~--~

Re: Mad SELECT with the admin view.

2006-10-15 Thread Gabriel Gunderson
On 10/15/06, Karen Tracey <[EMAIL PROTECTED]> wrote: > Yah, that does look bizarre. I have no idea what is going on but am a > sucker for puzzles so tried to make some sense of the select. My > feeling is the problem isn't in the StagedOrder class that you posted > but rather one of the ones get

  1   2   >