Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 Nov. 22, 2005 04:53:31

James B.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Close comments after a time?


I've been reading through the code for the bundled comments app, and
didn't see anything (though I may have missed it) for automatically
disabling comments on an object after a set period of time (say, 30
days). Is there any such functionality in there, or should I just add
a 'comments_allowed' method in my model which would handle this?


--
"May the forces of evil become confused on the way to your house."
-- George Carlin

Offline

#2 Nov. 22, 2005 06:07:15

Adrian H.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Close comments after a time?


On 11/21/05, James Bennett <> wrote:
> I've been reading through the code for the bundled comments app, and
> didn't see anything (though I may have missed it) for automatically
> disabling comments on an object after a set period of time (say, 30
> days). Is there any such functionality in there, or should I just add
> a 'comments_allowed' method in my model which would handle this?

The latter. Models are responsible for providing their own logic for
opening/closing comments.

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org

Offline

Board footer

Moderator control

Enjoy the 20th of January
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support