ObjectPaginator

2009-01-27 Thread Patricio Palma
Hi guys. I'm trying to use Rosetta ( http://code.google.com/p/django-rosetta/ ) in a view (home, a rosetta views) is using a ObjectPaginator and InvalidPage but i've a execption cant find module ObjectPaginator. Googling I fix it using from django.core.paginator import Paginator as

Re: ObjectPaginator

2009-01-28 Thread Patricio Palma
Yeah, versions problems I fix it downloading the lasted rosetta version from svn. svn co http://django-rosetta.googlecode.com/svn/trunk/ Ty a lot --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Extending the User model

2009-02-08 Thread Patricio Palma
Greetings I have a model from django.contrib.auth.models import User class MyUser(User): chilean_rut = CLRutField(_('RUT'),primary_key=True) class Meta: admin = meta.Admin( fields = ( (_('Personal info'), {'fields': ('first_name', 'last_name',

Extending the User model

2009-02-08 Thread Patricio Palma
Greetings I've a model class MyUser(auth.User): location = meta.CharField(maxlength=100, blank=True) class META: replaces_module = 'auth.users' admin = meta.Admin( list_display = ('username', 'email', 'first_name','last_name', 'lacation')

Re: Extending the User model

2009-02-08 Thread Patricio Palma
> This code looks exceptionally old, admin = meta.Admin() has been gone for > several years, what version of django are you workign with? > 1.1 pre-alpha I 've in admin.py file, the main idea was show the list_display field setted --~--~-~--~~~---~--~~ You

Re: Extending the User model

2009-02-08 Thread Patricio Palma
At revision 9820. ??? --~--~-~--~~~---~--~~ 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

Re: Extending the User model

2009-02-08 Thread Patricio Palma
Yeah you're right I can't believe that I mix the admin settings in the class, for a short explanation. my code: --- models.py from django.contrib.auth.models import User class MyUser(User): chilean_rut =

Re: Extending the User model

2009-02-09 Thread Patricio Palma
Thanks, I owe you a chocolate bar I fix it class MyUser(User): chilean_rut = CLRutField(_('RUT'),unique=True) some_field = models.CharField(max_length=50) voalá I don't really need a PK, my mistake Thanks again. --~--~-~--~~~---~--~~ You received this

How can I report a new user?

2008-12-06 Thread Patricio Palma
I have a model user class User(models.Model): name = models.CharField(_("name"), max_length=40) paternals = models.CharField(max_length=40) maternals = models.CharField(max_length=40) email = models.EmailField("e-mail") phone = models.IntegerField(_("phone number")) rol =

Re: How can I report a new user?

2008-12-06 Thread Patricio Palma
On Sat, Dec 6, 2008 at 4:59 PM, Jeff FW <[EMAIL PROTECTED]> wrote: > > Do you mean when a user is added via the admin interface, or when a > user registers on the site through a view you have set up? If it's > through a view you've made, then just add the call to send_mail() in > the view. For

keep html

2008-12-06 Thread Patricio Palma
Is possible to get the html code from an administration page? I mean, my browser is interpreting a html generated by templates and components of my application, some banners and pictures. Is there any way to get that code? --~--~-~--~~~---~--~~ You received this

Re: keep html

2008-12-07 Thread Patricio Palma
On Sun, Dec 7, 2008 at 2:12 AM, Karen Tracey <[EMAIL PROTECTED]> wrote: > > > Something like View->Page Source from the browser menu? (That's what > Firefox calls it -- I'd guess most browsers have some such way to see the > raw html for a page.) Or am I misunderstanding your question? > > Karen

Re: keep html

2008-12-07 Thread Patricio Palma
On Sun, Dec 7, 2008 at 8:45 PM, Malcolm Tredinnick <[EMAIL PROTECTED] > wrote: > > > On Sun, 2008-12-07 at 14:24 -0300, Patricio Palma wrote: > > > > > > On Sun, Dec 7, 2008 at 2:12 AM, Karen Tracey <[EMAIL PROTECTED]> > > wrote: > > > >

Re: keep html

2008-12-13 Thread Patricio Palma
On Dec 7, 8:45 pm, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > On Sun, 2008-12-07 at 14:24 -0300, Patricio Palma wrote: > > > On Sun, Dec 7, 2008 at 2:12 AM, Karen Tracey <kmtra...@gmail.com> > > wrote: > > >         Something like