Last change
on this file since 9060 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
|
---|
2 | from django.core.management import setup_environ
|
---|
3 | import settings
|
---|
4 | setup_environ(settings)
|
---|
5 | import datetime
|
---|
6 | from gheat.models import *
|
---|
7 |
|
---|
8 | g = Gebruiker(naam='dennis', email='dennis@test.com')
|
---|
9 | g.save()
|
---|
10 | a = Apparatuur(antenne='antenneding', kaart='kaartding')
|
---|
11 | a.save()
|
---|
12 | m = MeetRondje(datum=datetime.datetime.now(), naam='dennisrondje', gebruiker_id=g.id, apparatuur_id=a.id)
|
---|
13 | m.save()
|
---|
Note:
See
TracBrowser
for help on using the repository browser.