Re: numerous problems with the source code in this book

2008-08-21 Thread Ray Smith
Hi, I'm half way through the book (using 1.0 beta). I have made a couple of changes as I went through. What is the current error you have? (Looking back through the archives of django users I believe the author is still working on updated versions of the source code). Regards, Ray Smith htt

Problem with generic views in tutorial example

2008-08-21 Thread Rodney Topor
I'm having trouble modifying the tutorial example to use generic views. (My implementation without generic views works fine.) I've registered the class Poll with admin in a separate admin.py module as described in ticket 8181. I've provided names for all url patterns in app polls. I've defined

model.save() override and admin

2008-08-21 Thread jboutros
Hello all, I have a model where I've overridden the save method. In a specific case (validation fails against an external web service), I would like to prevent the save from happening. I have implemented this by not calling super.save in this case. (see http://www.djangoproject.com/documentat

Re: Problem with generic views in tutorial example

2008-08-21 Thread Anurag Goel
I was able to implement the generic views change with yesterday's trunk version successfully. I did not have to do anything special (no separate admin.py, no get_absolute_url()) I did however, do something that the tutorial did not ask to do - i.e. delete all references to the admin in mysite/url

Cheat Sheets

2008-08-21 Thread DavidY
Hi, I'm a learner, and I am going to make some cheat sheets, and it would be a pity if I made them only for myself. It would be great if this can be put on the wiki or something. If anyone wants the text file, i can give too. http://www.scribd.com/doc/4950257/django-templates-cheat-sheet --~--~-

Problem with saving inherited models.

2008-08-21 Thread Ovchinnikov
My models: class CoreObject(Model): root = ForeignKey('self', blank = True, null = True) name = CharField(max_length = 250, blank = True) owner = ForeignKey(User) date = DateTimeField(auto_now = True) class ModerableObject(CoreObject): moderators = ForeignKey(ModeratorsGro

override model.save - prevent saving (admin)

2008-08-21 Thread jboutros
Hello all, I have a model where I've overridden the save method. In a specific case (validation fails against an external web service), I would like to prevent the save from happening. I have implemented this by not calling super.save in this case. (see http://www.djangoproject.com/documentat

<    1   2