Hello,
My problem is that I have (for example), a model teacher - subject
many to many. So that I made additional table named teacherSubject
with both ids. Now I would like to have an opportunity to add subjects
to Teachers in admin panel but no by id of the subject but by name.
Now according
Hi,
tahnks for reply I added additional ManyToManyfield to one table and
admin panel looks ok but in fact even using syncdb new intermediate
table wasn't created.
Is there anything else I should do ?
--~--~-~--~~~---~--~~
You received this message because you
Hello,
Is it possible to insert to the template for example 10 checkboxes
I know syntax of iterating through objects in list and do some task
for each item but Im interested in normal for loop
like
for i in xrang(10):
insert checkbox
thanks for reply
Hello,
Is it possiblo to merge Querystets into one big Queryset?
--~--~-~--~~~---~--~~
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
Hello,
Common task in template is doing for loop end inserting into html some
elements.
for example
1: {% for seller in sellers %}
2:{% for customer in customers %}
3:{% ifequal seller.customer_id customer.id %}
4:{{ seller.name }} {{ customer.name }}
5:{%
Django >= 1.1)
>
> {% for seller, customer in filtered_list %}
> {{ seller.name }} {{ customer.name }}
> {% empty %}
> No customers.
> {% endfor %}
>
> -- dz
>
> On Wed, Aug 12, 2009 at 5:06 AM, elminio<wgruszczyn...@gmail.com> wrote:
>
> > Hello,
Hello,
I have problem with serialization of querysets.
I use methos:
json = serializers.serialize('json', [Grade.objects.get(pk=pk)])
return HttpResponse(json, content_type='application/json; charset=
%s' % settings.DEFAULT_CHARSET)
And I get this error:
'Grade' object has no
Hi,
Im passing to the template dictionary and I would like to get by key
to the value of that dictionary and if the key doesnt exist in it
insert blank field into html
thank You very much for help
--~--~-~--~~~---~--~~
You received this message because you are
Thanks for such a quick reply
and what is i iterate through for example students
{% for student in students %}
{{ dictionary.student.id }}
{% endfor %}
I want to have student.id as a key and in the way I did it above it
doesnt work because dicttionary wants student as a key :)
thanks for
I iterate through all students and have distionary containing students
ids as key and for example grade as a value. I pass this dictionary to
the view and then while iterating through all students I though that
it would be simple to get appropriate value for current student. I
dont know how I
sorry:
I pass this dictionary to the TEMPLATE
--~--~-~--~~~---~--~~
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,
> See this:
>
> http://docs.djangoproject.com/en/dev/ref/templates/builtins/#for
>
> There's an example of iterating over key, value pairs
>
> Marc
>
> On Aug 18, 5:48 pm, elminio <wgruszczyn...@gmail.com> wrote:
>
> > I iterate through all students and ha
Hello
I have model like:
class MyModelA(models.Model):
number = models.IntegerField()
class MyModel(models.Model):
my_model_a = models.ForeignKey(MyModelA)
other_field = other data ...
and now in admin:
class MyModelAdmin(admin.ModelAdmin):
list_filter = ("my_model_a")
it
Hello,
I assume that each view should return Httpresponse. What when I just
want to execute function which updates my databes and doesnt redirect
anywhere ?
thanks for reply
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Hi,
In admin Panel I can choose groups and give them specified
permissions. For example
admin | log entry | can add log entry
And I would like to create my own type of permission which for example
is called all and gives to the specified user permission to do
whatever he likes, and other
Hi,
How to ignore case sensitivity in admin search box ?
In model I have one search field set but case sensitivity isn't
ignored
thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
dan I. Bursuc" <bogdanbursu...@gmail.com>
wrote:
> i think you want to create a group.
>
> On Tue, 2009-10-06 at 01:05 -0700, elminio wrote:
> > Hi,
> > In admin Panel I can choose groups and give them specified
> > permissions. For example
>
> > admin |
Hi,
I've extended my model with new permission.
class Meta:
permissions = (
("total", "total"),
)
After that I mafe manage.py syncdb. But after that when I wanted to
add user new privilage just created there wasn't it in admin panel
where you can choose permissions
Up Up
On Oct 8, 12:10 pm, elminio <wgruszczyn...@gmail.com> wrote:
> Hi,
> I've extended my model with new permission.
>
> class Meta:
> permissions = (
> ("total", "total"),
> )
>
> After that I mafe manage.py s
Hi,
I'm going to take my project on production. Now I'm looking for good
hosting service and I would like to know what are django requirements.
I mean what CPU, RAM, would be enough form website with more than 2000
visitors per day. And for website with visitors sth like 1000 per day.
Maybe any
hi,
It didnt help :/
On Oct 9, 10:33 am, "Bogdan I. Bursuc" <bogdanbursu...@gmail.com>
wrote:
> Try to delete the auth_permissions table the sync db
> see if it helps
>
> On Fri, 2009-10-09 at 01:29 -0700,elminiowrote:
> > Up Up
>
> > On Oct 8, 12:1
Hi,
By admin I can choose what users can do with model objects. And what
about certain pages. Do I have to write if in everyone view method (to
check is current user may access given view ?
Or is there any built in tool that makes it possible to restrict
access to given pages.
thanks for help
Hello,
The situation is that I have a div to which I want to dynamically load
forms for update create etc of my models.
I use generic forms.
And the problem is that when I use javascript with jQuery :
key is already defined:
$("#div_nontetn").load("/model/"+ key + "/update/", {object_id:
Hi,
I use generic view on updating objects. How to create button with
cancel that will always redirect me to the previous page ?
thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
Up Up
On Oct 28, 11:42 am, elminio <wgruszczyn...@gmail.com> wrote:
> Hi,
>
> I use generic view on updating objects. How to create button with
> cancel that will always redirect me to the previous page ?
>
> thanks
--~--~-~--~~~---~--~~
Y
Hello,
I would like to implement functionality described below.
Lets say that There is a Django application in which each user can
create records and insert them into Database (for example record
containing one text column).
Many users can be logged in the application at the same time.
One
Thanks,
That is exactly the answer I needed.
--~--~-~--~~~---~--~~
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,
Hi,
I downloaded and installed on windows Jsonpickle
In normal python script everything works fine (import jsonpickle)
but I dont know how to use it in my django app (in views import
jsonpickle doesnt work) - no module named jsonpickle
thanks for help
--
You received this message because you
28 matches
Mail list logo