Re: I need django-evolution app

2010-03-12 Thread Sandra Django
Thanks friends, regards On Fri, Mar 12, 2010 at 10:28 AM, Shawn Milochik wrote: > South has become the dominant DB migration tool for Django. Have a go at > that. > > http://south.aeracode.org/ > > Shawn > > > -- > You received this message because you are subscribed to the Google Groups > "Djan

I need django-evolution app

2010-03-12 Thread Sandra Django
Hi friends, I'm trying to download django-evolution app, but I can't from Cuba. Could you send to me this app for this way? Please! Thanks, Sandra -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@

Problems with django-ajax-filtered-fields and ManyToManyByRelatedField

2010-03-08 Thread Sandra Django
Hi friends, someone has worked with django-ajax-filtered-fields? I'm having problems with ManyToManyByRelatedField. The syntax is very simple, I think that it isn't the problem. I have an "Author" class that it has a ForeignKey field named "type", and I want to filter for this field in the form. In

Problems width add_to_class

2009-11-05 Thread Sandra Django
Hi friends, I have a problem. I'm trying to add to User class of Django an attribute. For that I'm using add_to_class method. I did the following: 1. Delete from Data Base the tables: «auth_user», «auth_user_groups» y «auth_user_user_permissions». 2. In models.py of «main» aplication I pu

Problems with custom Auth Backends: 'NoneType' object has no attribute 'DoesNotExist'

2009-10-08 Thread Sandra Django
Hi, I want add a new attribute in User model and create custom backends. Steep by steep, I did the following: 1) I created an application named "profile" into my project 2) I created, in models.py of "profile" a class named "UserProfile", which inherits from User class of Django. I added "press_age

Problems with custom Auth Backends: 'NoneType' object has no attribute 'DoesNotExist'

2009-10-02 Thread Sandra Django
Hi, I want add a new attribute in User model and create custom backends. Steep by steep, I did the following: 1) I created an application named "profile" into my project 2) I created, in models.py of "profile" a class named "UserProfile", which inherits from User class of Django. I added "press_age

Add buttons to change_form

2009-09-04 Thread Sandra Django
Hi friends, I have a problem. I want add buttons to change_form, and I did the same thing of Django, I wrote a templatetags, but I have a doubt in the views. I want do something as: def newdescriptor(request): if request.method == 'POST': form = CustomNewForm(request.POST) if for

Add buttons to change_form

2009-09-03 Thread Sandra Django
Hi friends, I have a problem. I want add buttons to change_form, and I did the same thing of Django, I wrote a templatetags, but I have a doubt in the views. I want do something as: def newdescriptor(request): if request.method == 'POST': form = CustomNewForm(request.POST) if for

Re: are you using mptt, treebeard or something else?

2009-09-03 Thread Sandra Django
Hi Aljosa Mohorovic, I need work with django-mptt or django-treebeard, but neither I'm sure. I think that django-mptt is better, this says all ( http://magicrebirth.wordpress.com/2009/08/06/representing-hierarchical-data-with-django-and-mptt/ ) Sorry, a cuestion because I don't understand. mptt req

Add buttons to change_form

2009-09-03 Thread Sandra Django
Hi friends, I have a problem. I want add buttons to change_form, and I did the same thing of Django, I wrote a templatetags, but I have a doubt in the views. I want do something as: def newdescriptor(request): if request.method == 'POST': form = CustomNewForm(request.POST) if for

Is valid {% ifequal model.name "Mymodelname" %}??

2009-09-02 Thread Sandra Django
Hi friends, Can I do a condition depending on my model name? For example, I did that: {% ifequal model.name "Mymodelname" %} do something {% endifequal %} But don't work. Someone could help me? --~--~-~--~~~---~--~~ You received this message because you are su

Problems with custom permissions

2009-09-01 Thread Sandra Django
Hi friends, I haver another problem. I created a custom permission, but when I write a condition, always return False. For example: ---models.py class Book(models.Model): title = models.CharField(verbose_name = "Title", max_length = 150) author = mode

Problems with filter_horizontal

2009-09-01 Thread Sandra Django
Hi friends, I'm using Django 1.1, and I want to change the widget by default on ManyToManyField for it looks as user permissions field in Django. For that, in my admin.py I wrote: from django.contrib import admin from myproject.app.models import Book class BookAdmin(admin.ModelAdmin): filter_

Re: show user and date in change_list

2009-08-28 Thread Sandra Django
Thank's Alex, but it don't seem the problem, because I tested with another method name "author" and "pub_date", and returns (None) too. Why? On Thu, Aug 27, 2009 at 5:03 PM, Alex Gaynor wrote: > > On Thu, Aug 27, 2009 at 12:18 PM, Sandra Django > wrote

show user and date in change_list

2009-08-27 Thread Sandra Django
Hi, I want display in change_list view, user who added an object and date. I did that: - models.py --- > > class One(models.Model): > .. > def user(self): > return self.user.username > > def date(self): > return self.date > -- a

Display user and date in change_list

2009-08-26 Thread Sandra Django
Hi, I want display in change_list view, user who added an object and date. I did that: -- models.py --- class One(models.Model): .. def user(self): return self.user.username def date(self): return self.date -- admin.py --

Return custom view depending on user

2009-08-26 Thread Sandra Django
Hi friends, another doubt... I have a group, where all users that belongs to this groups only can access to a form, and I want that when anyone is logged, go directly to that form, not to Django view by default. How I can do it? Depending on the group, return that form. Thanks for any help, Sandra

Re: Problems width templatetags

2009-08-25 Thread Sandra Django
n you help me, please??!! On Tue, Aug 25, 2009 at 4:28 PM, Mike Ramirez wrote: > On Tuesday 25 August 2009 12:56:12 pm Sandra Django wrote: > > Hi friends, I'm trying to custom the index.html of Django. For that, I'm > > writing a custom template tag (categories.py). This

Problems width templatetags

2009-08-25 Thread Sandra Django
Hi friends, I'm trying to custom the index.html of Django. For that, I'm writing a custom template tag (categories.py). This module should display a list, but don't display anything. Why? I'll describe that I did because if you can you explain me what is the problem, ok? 1) I created "templatetags"