Always prefix a Django form -


i know prefix argument can pass while instantiating form. requirements different.

i have 2 forms this

class twitterform(forms.form):     friends = forms.charfield(...)  class fbform(forms.form):     friends = forms.charfield(...) 

they present together, means can guarantee need prefix them. there way add prefix @ class level rather @ object creation time.

override __init__() , add keyword argument before calling parent's method.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -