delete_unique.py 390 Bytes
# -*- coding: utf-8 -*-
from south.db import db
from django.core.management.base import BaseCommand

class Command(BaseCommand):
  args = 'none'
  help = 'Aktualnie nie dziala z powodu bledu w south.'

  def handle(self, **options):
    delete_unique()

def delete_unique():
  db.delete_unique('odmieniasie', ['l_id', 'oind'])
  db.delete_unique('zakonczenia', ['w_id', 'efobaz', 'zind'])