Beratung Social Media
Ich unterstütze Sie gerne bei der Entwicklung und Umsetzung ihrer Social-Media-Strategie.
Ich unterstütze Sie gerne bei der Entwicklung und Umsetzung ihrer Social-Media-Strategie.
Sie benötigen eine auf ihre Wünsche und Vorstellungen angepasste Web-Applikation, dann finden Sie in mir einen kompetenten Partner
Neue Wege geben uns neue Möglichkeiten. Ich würde Sie gerne bei der Beschreitung dieser Wege begleiten.
If you are using an modelform for a class that uses an ManyToMany-Field and you have overwritten the save-Method in your Form, you’re gonna have a bad time. But wait, there is an solution, inspired by http://stackoverflow.com/questions/1925383/issue-with-manytomany-relationships-not-updating-inmediatly-after-save .
Continue Reading →To return a list oft all days between two dates, just take the following function based on the useful datetime-library: Quelle: http://bytes.com/topic/python/answers/774887-how-create-list-dates-between-two-dates
Continue Reading →I’m often searching for a way, to pass data to forms, without changing the view. So, let’s do it in a simple way. I’m gonna create a Model and overwrite the save-method and the __init__-method. At first, you have to change the __init__-method: As you can see, i passed a new argument “user” and gave…
Continue Reading →To filter fields in django forms e.g. for objects with restricted access in meta-forms, you have to overwrite your __init__-method in your Form. Then you can choose your field by self.fields['fieldname'] and give it a new formtype and choosing the filtered data with the queryset-argument. And a complete example:
Continue Reading →I know, this is not the best way and you probably shouldn’t use ist in production, but for me this little snippet was always very helpful for developing with Django: This way, you can register all models from an app in your admin.py at once.
Continue Reading →