Re: Accessing to my user

2015-04-02 Thread somenxavier
Perfect. El dijous, 2 abril de 2015 17:29:46 UTC+2, Filipe Ximenes va escriure: > > Try: > > p = Persona.objects.get(user__username='foo') > > ​ > > On Thu, Apr 2, 2015 at 12:24 PM, wrote: > >> I have this >> class Persona(models.Model):7 >>

Accessing to my user

2015-04-02 Thread somenxavier
I have this class Persona(models.Model):7 """Person class:8 * user: a user9

migrations don't work

2015-03-22 Thread somenxavier
Hi, makemigrations works but migrate does not: [xan@mercuri gargamella]$ python manage.py makemigrations Migrations for 'quedar': 0003_auto_20150322_1813.py: - Create model Persona - Delete model User - Add field user to persona - Alter field members on dialectgroup - Alter

Re: Max_length of EmailField in django.contrib.auth.models.User

2015-03-22 Thread somenxavier
Is it the same if I want to specify email as required field, isn't? El diumenge, 22 març de 2015 15:55:33 UTC+1, Tim Graham va escriure: > > Currently you need to use a custom user model if you want to change the > username max_length. There's an open ticket to increase the default length > to

Re: Max_length of EmailField in django.contrib.auth.models.User

2015-03-22 Thread somenxavier
Thanks, Anderson, but can I overwrite the length of User class? How? Sorry I'm still a newbee? With AbstractUser? [https://docs.djangoproject.com/en/1.7/topics/auth/customizing/#django.contrib.auth.models.CustomUser] or Extending user class

Max_length of EmailField in django.contrib.auth.models.User

2015-03-22 Thread somenxavier
Hi, The User class in https://docs.djangoproject.com/en/1.7/ref/contrib/auth/#django.contrib.auth.models.User is using EmailField with 254 max_length? I want to follow RFC (See https://docs.djangoproject.com/en/1.7/ref/models/fields/#emailfield) Thanks, -- You received this message because

Re: using historic changes from django-admin to templates?

2014-08-18 Thread somenxavier
Thanks, Collin. This is what I want. How can I import LogEntry and use it? I'm yet a newbee ;-) El dilluns 18 d’agost de 2014 2:30:28 UTC+2, Collin Anderson va escriure: > > Or, is the data on the admin "history" page good enough? You could just > import LogEntry and start querying it. The model

using historic changes from django-admin to templates?

2014-08-17 Thread somenxavier
Hi, I just ask if it's possible (and how) to use the "historic changes" of django-admin interface to templates for showing what changes I've made in my models in my site. Can anyone follow the Poll examples of the tutorial. Thanks in advance, Xan -- You received this message because you

Re: Admin options are just ignored

2014-08-12 Thread somenxavier
Yes, it's. Thank you very much. This is not in the documentation this way. Can anyone update this? El dilluns 11 d’agost de 2014 21:03:31 UTC+2, Collin Anderson va escriure: > > it could be an issue with

Re: Admin options are just ignored

2014-08-11 Thread somenxavier
Yes, I'm pretty sure. You can see here <https://github.com/somenxavier/serviedre-tasques/blob/master/serviedre/tasques/models.py> my models. No 'modificacio' And $ grep -R "modificacio" serviedre/tasques/models.py:data_modificacio = models.DateTimeField(auto_now=True,verbo

Re: Admin options are just ignored

2014-08-11 Thread somenxavier
Mmm.. sorry. I did not see that. One more error: after making these changes <https://github.com/somenxavier/serviedre-tasques/blob/master/serviedre/tasques/admin.py>, I receive FieldError at /admin/tasques/resguard/1/ Unknown field(s) (data_modificacio) specified for Resguard.

Re: Admin options are just ignored

2014-08-11 Thread somenxavier
app, >> django-admin ignores that. >> >> You can see the source code [here]( >> https://github.com/somenxavier/serviedre-tasques/tree/master/serviedre) >> >> Can anyone take a look. Thanks in advance, >> Xan >> > -- You received this message becaus

Admin options are just ignored

2014-08-10 Thread somenxavier
Hi, I'm following the django tutorial with my application. When I add fieldset, search_fields, and other options in the admin.py in my app, django-admin ignores that. You can see the source code [here](https://github.com/somenxavier/serviedre-tasques/tree/master/serviedre) Can anyone take