Re: Admin options are just ignored

2014-08-12 Thread Collin Anderson
> This is not in the documentation this way. Can anyone update this? See the note here: https://docs.djangoproject.com/en/1.6/ref/models/fields/#django.db.models.DateField.auto_now -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

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 Collin Anderson
it could be an issue with auto_now, as only the database should be editing that field and it shouldn't be editable through the admin. Try adding this to your ResguardAdmin: readonly_fields = ['data_modificacio'] -- You received this message because you are subscribed to the Google Groups

Re: Admin options are just ignored

2014-08-11 Thread somenxavier
Yes, I'm pretty sure. You can see here my models. No 'modificacio' And $ grep -R "modificacio" serviedre/tasques/models.py:data_modificacio = models.DateTimeField(auto_now=True,verbose_name="data de

Re: Admin options are just ignored

2014-08-11 Thread Collin Anderson
is data_modificacio a real field on your model? (not just a method?) are you using a custom form? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

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 , I receive FieldError at /admin/tasques/resguard/1/ Unknown field(s) (data_modificacio) specified for Resguard. Check

Re: Admin options are just ignored

2014-08-11 Thread James Bennett
It is there in the documentation. The first instance just uses "admin.site.register(Poll)" because it hasn't yet begun customizing. Once it starts explaining customization, it tells you, in that section: https://docs.djangoproject.com/en/1.6/intro/tutorial02/#customize-the-admin-form to change

Re: Admin options are just ignored

2014-08-11 Thread somenxavier
Thank you very much. You're right. In the official documentation there is no reference of that (step 2 ). Can anyboydy add it? Thanks, El dilluns 11 d’agost de 2014 0:02:34 UTC+2, Adrian Marshall va escriure: > > Think I found the

Re: Admin options are just ignored

2014-08-10 Thread Adrian Marshall
Think I found the problem. You're not registering the new Admin model classes you have made. change: admin.site.register(Resguard) to this: admin.site.register(Resguard,ResguardAdmin) do the same with the rest of your admin.site.register() functions That should work! Hope that

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 a