11 lines
178 B
Python
11 lines
178 B
Python
from ordynacja.models import Komitet
|
|
|
|
f = open("komitety", 'r+').readlines()
|
|
|
|
v = f[0].split('\t')
|
|
|
|
for i in v:
|
|
j = i.split(" - ")
|
|
k = Komitet(name=j[1], kw_id=j[0])
|
|
k.save()
|