source: src/django_gheat/gheat/foo.py@ 9072

Last change on this file since 9072 was 9044, checked in by dennisw, 14 years ago

testscript voor data-insert toegevoegd

  • Property svn:executable set to *
File size: 399 bytes
Line 
1#!/usr/bin/env python
2from django.core.management import setup_environ
3import settings
4setup_environ(settings)
5import datetime
6from gheat.models import *
7
8g = Gebruiker(naam='dennis', email='dennis@test.com')
9g.save()
10a = Apparatuur(antenne='antenneding', kaart='kaartding')
11a.save()
12m = MeetRondje(datum=datetime.datetime.now(), naam='dennisrondje', gebruiker_id=g.id, apparatuur_id=a.id)
13m.save()
Note: See TracBrowser for help on using the repository browser.