Skip to content

Instantly share code, notes, and snippets.

@fandrefh
Created August 1, 2014 13:09
Show Gist options
  • Save fandrefh/4c1951328ba4783f9aa4 to your computer and use it in GitHub Desktop.
Save fandrefh/4c1951328ba4783f9aa4 to your computer and use it in GitHub Desktop.
class GetPayment(models.Model):
campaign = models.ForeignKey(Campaign, verbose_name=u'Campanha')
user_c = models.ForeignKey(User, verbose_name=u'Usuário', blank=True, null=True)
value = models.DecimalField(u'Valor R$', max_digits=15, decimal_places=2, help_text='Quanto quer sacar?')
request_date = models.DateTimeField(auto_now_add=True)
def __unicode__(self):
return self.campaign
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment