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
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
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
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:
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
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
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
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)
>
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
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
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.
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
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/
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
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
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
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
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
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
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
20 matches
Mail list logo