Twitter Facebook +

schannak.com

In das Auge, durch den Sinn zur Emotion

  • Meine 50 Cent
  • Ferienwohnung Web-Marketing
  • Blog
    • Webentwicklung
  • Kontakt
    • Impressum
  • Über Mich
  • businessman-idea
    In das Auge, durch den Sinn zur Emotion
  • Heißluftballon
    Neue Möglichkeiten entdecken
  • Tastatur
    Mit Kompetenz zur Innovation




Social networking

Beratung Social Media

Ich unterstütze Sie gerne bei der Entwicklung und Umsetzung ihrer Social-Media-Strategie.

software_loesungen

Individuelle Softwarelösungen

Sie benötigen eine auf ihre Wünsche und Vorstellungen angepasste Web-Applikation, dann finden Sie in mir einen kompetenten Partner

innovative_marketing_strategien

Innovative Marketing-Strategien

Neue Wege geben uns neue Möglichkeiten. Ich würde Sie gerne bei der Beschreitung dieser Wege begleiten.



Mein Blog

Django: ManyToMany Relationships and an overwritten save-Method

Allgemein by admin on 13. September 2012

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 →

Python: List of all days between two dates

Allgemein by admin on 12. September 2012

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 →

Forms in Django: Overwriting the save-method and passing the request.user data

Allgemein by admin on 9. September 2012

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 →

Django – filter fields in forms

Webentwicklung by admin on 9. September 2012

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 →

Django Admin – Register all models

Allgemein by admin on 6. September 2012

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 →

Post navigation

12345

Newsletter
Melden Sie sich zu unserem Newsletter an und erhalten sie wichtige und interresante Neuigkeiten zu unseren Angeboten und zu FeWoVer.


In Micro gebloggt
Loading Tweets...
Agility WordPress Theme © SevenSpark
Proudly powered by WordPress