Tabs, meet your new overlords: spaces

In a quest to reach pep8, use spaces to indent rather than tabs.
This commit is contained in:
Magnus Hagander
2019-01-17 15:30:25 +01:00
parent b2ed494655
commit 87237f6536
121 changed files with 5331 additions and 5331 deletions

View File

@ -4,12 +4,12 @@ from pgweb.core.models import Organisation
from models import Product
class ProductForm(forms.ModelForm):
form_intro = """Note that in order to register a new product, you must first register an organisation.
form_intro = """Note that in order to register a new product, you must first register an organisation.
If you have not done so, use <a href="/account/organisations/new/">this form</a>."""
def __init__(self, *args, **kwargs):
super(ProductForm, self).__init__(*args, **kwargs)
def filter_by_user(self, user):
self.fields['org'].queryset = Organisation.objects.filter(managers=user, approved=True)
class Meta:
model = Product
exclude = ('lastconfirmed', 'approved', )
def __init__(self, *args, **kwargs):
super(ProductForm, self).__init__(*args, **kwargs)
def filter_by_user(self, user):
self.fields['org'].queryset = Organisation.objects.filter(managers=user, approved=True)
class Meta:
model = Product
exclude = ('lastconfirmed', 'approved', )