Source Code for Me (s-c.me)

Allows you to paste souce code to blogs! Adapted for Twitter! Here is Search Form in case you missed your code.
Code:
Selected Language:
Show Linenumbers:
Short link for Twitter:
HTML:

HTML view:

Copy Source | Copy HTML
  1. class UserForm(forms.Form):
  2.     username = forms.CharField()
  3.     plan = forms.ModelChoiceField(queryset = Plan.objects.none())
  4.  
  5.     def __init__(self, subdomain, *args, **kwargs):
  6.         self.default_username = default_username
  7.         super(UserForm, self).__init__(*args, **kwargs)
  8.         self.fields['plan'].queryset = Plan.objects.filter(subdomain = subdomain)




Based on Manoli.Net's CodeFormatter. Made by Topbot (c) 2008-2012