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

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

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

google shop client API returns 400 bad request error while adding an item -