I have a django model like this: class Something(models.Model): title = models.CharField(max_length=200, default=u\'\')
I have several models:ContactEmail, ContactLetter, ContactCall My controller doesn\'t know what is being passed into it.It only knows it as an event (so event can be specific instance of ContactEmail
In my app I want the time/date to display as Month/Year (e.g. 7/10). The problem is sometimes I get class Date and sometimes class Time so I wind up with the following code in the application controll
I am starting to hav开发者_StackOverflow社区e some difficulty making this more DRY: http://gist.github.com/471225
I\'m building a website with very small amounts of Javascript, just to add things to the page (like a contact form) without having to go to a new page.
So I did some refactoring and two of my classes now look exactly the same except for their constructors.
I want to pass this function a True or a False and have the elements listed show (true) or hide (false) on this input.
Posting as a jquery newbie. I am sure there must be a way to condense the code below in a DRY fashion. Essentially this is just a show/hide that is applied to multiple elements on a page, all using th
I have a wxPython application which allows the users to select items from menus that then change what is visible on the screen.This often requires a recalculation of the layout of panels.I\'d like to
I\'ve just checked out the ON DUPLICATE KEY UPDATE for MySQL. Here is an example query. $query = \'INSERT INTO `activities`