Re: Creating an alternative change_list view for a specific app/model, not extending or overriding

2011-08-25 Thread Thomas Weholt
ut provide an >> additional/alternative view to the existing change_list for a specific >> app/model. I need to change how the elements in the change_list are >> presented. I'm listing photos, and want a layout like googles image >> search, not the table-based you g

Re: Creating an alternative change_list view for a specific app/model, not extending or overriding

2011-08-24 Thread Thomas Orozco
cifiying filtering in your adminmodel still works in my new view. I > DO NOT want to extend or override the existing one but provide an > additional/alternative view to the existing change_list for a specific > app/model. I need to change how the elements in the change_list are > pres

Creating an alternative change_list view for a specific app/model, not extending or overriding

2011-08-24 Thread Thomas Weholt
existing one but provide an additional/alternative view to the existing change_list for a specific app/model. I need to change how the elements in the change_list are presented. I'm listing photos, and want a layout like googles image search, not the table-based you get by default in the admin. I

Re: Changing App/Model Names and Sort Order in index.html

2011-08-15 Thread Konstantin Sushenko
hello, your question indicates that you have a limitedknowledge of django templates and template tags. python code is ot supported in templates, so your string.replace won't work. to change the order: https://docs.djangoproject.com/en/dev/ref/models/querysets/#order-by konstantin On Aug 14, 8:

Changing App/Model Names and Sort Order in index.html

2011-08-14 Thread Lee
Is there an easy way to change "Auth" to "My Authentication App Name" in index.html? I tried changing {{ name }} to {{ string.replace(name,'Auth','My Authentication App Name') }} but it just kills the label completely -- hopefully just a syntax problem. How about changing the order that the models

Re: app/model not showing in admin interface?

2011-03-14 Thread shofty
100% documented here. http://docs.djangoproject.com/en/dev/intro/tutorial02/#make-the-poll-app-modifiable-in-the-admin easy enough to test, new app, new admin.py, refresh the admin, not there. stop/start, it;ll be there. caught me out more than once til i properly read the tut. Matt On Mar 14

Re: app/model not showing in admin interface?

2011-03-14 Thread Kenneth Gonsalves
On Mon, 2011-03-14 at 00:14 -0700, shofty wrote: > stop/start the dev server. It doesn't spot new files being created, > only changes to existing files. are you sure? -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.techstud.org/ -- You received this message becaus

Re: app/model not showing in admin interface?

2011-03-14 Thread shofty
stop/start the dev server. It doesn't spot new files being created, only changes to existing files. On Mar 13, 8:37 pm, "Mark J. Nenadov" wrote: > Sorry, that code from admin.py should read: > > >> from app.models import Task > >> from django.contrib import admin > >> admin.site.register(Task) >

Re: app/model not showing in admin interface?

2011-03-13 Thread Mark J. Nenadov
Sorry, that code from admin.py should read: >> from app.models import Task >> from django.contrib import admin >> admin.site.register(Task) ~Mark -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-user

app/model not showing in admin interface?

2011-03-13 Thread Mark J. Nenadov
Hello folks! I'm trying to get some of my apps/models to display in mysite:8000/admin/ and am not having any luck. I have my app's admin.py setup like so: >> from app.models import Task >> from django.contrib import admin >> >> admin.site.register(App) django.contrib.admin is enabled in my INSTA

Re: app model

2009-10-16 Thread Léon Dignòn
User signals: models.py -- def do_something(sender, instance=None, **kwargs): """Does something instance is the user instance. """ if instance is not None: # Do Something post_save.connect(do_something, sender=User) # User is the user model. On 14 Okt.

Re: app model

2009-10-15 Thread Zilva
Find way models.py . uid= models.IntegerField(blank = True, null = True, ... admin.py class Media: js = ( 'js/jquery.min.js', 'js/us.js' ) us.js $(document).ready(function(){ $(".form-row.uid").css("display","none

Re: app model

2009-10-14 Thread Bayuadji
Hi, I don't think there's an easy way. except that you customize your model save function -djibon- On 10/14/09, Zilva wrote: > > like auto_now_add > > > -- -- http://www.tumbletooth.org my linkedin profile : http://www.linkedin.com/

Re: app model

2009-10-14 Thread Zilva
like auto_now_add --~--~-~--~~~---~--~~ 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+un

app model

2009-10-14 Thread Zilva
Hi, seeking a way how user ID automatically add in to the integer field, Django model. Would anyone know any simple solution? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

Pass a queryset to the admin and display using existing app/model admin?

2009-03-28 Thread Rob Hudson
I have a use case where we want a search form to search across almost all columns of this particular model. Upon submit, I thought it would be a nice feature (since this is already in the admin) to use the already existing settings for my particular app/model instance. Is it possible to build

Re: Add fields to another app model

2008-12-05 Thread Bojan Mihelac
Hey RM, thanks for your answer. I am looking into 2nd option and try to get more links on this subject. best, Bojan On Dec 4, 6:32 pm, redmonkey <[EMAIL PROTECTED]> wrote: > Hey Bojan > > There is a few ways you could do this (certainly more that what I'm > about to tell you). It depends on the

Re: Add fields to another app model

2008-12-04 Thread redmonkey
Hey Bojan There is a few ways you could do this (certainly more that what I'm about to tell you). It depends on the effect you want to create. Perhaps the simplest way is to inherit from the existing class. But inheriting classes should only strictly be used as an `is a` relationship. So perhaps

Re: Add fields to another app model

2008-12-04 Thread redmonkey
Hey Bojan There is a few ways you could do this (certainly more that what I'm about to tell you). It depends on the effect you want to create. Perhaps the simplest way is to inherit from the existing class. But inheriting classes should only strictly be used as an `is a` relationship. So perhaps

Add fields to another app model

2008-12-04 Thread Bojan Mihelac
Hi all! I am looking for right way to add fields to model that is in another app. At first I created mysite application and in models.py put from satchmo.contact.models import Contact Contact.add_to_class("company_name", models.CharField(max_length = 200)) that raises exception ProgrammingError