i new to south and i was wondering if the following was supported
heres my models
class Action(models.Model):
name = models.CharField(max_length=255)
class AuthorisedAction(models.Model):
userClass = models.ForeignKey(UserClass)
action = models.ForeignKey(Action)
class UserClass(models.Model):
name = models.CharField(max_length=64)
power = models.BooleanField()
priority = models.IntegerField()
and in my migration in the forwards function im trying to add a new
item
qManger = orm.UserClass.objects.get(name="Quarantine
Manager")
rAction = orm.Action.objects.get(name =
actions.ECFQuarantineManager_Refresh.name)
refreshAction = orm.AuthorisedAction.objects.get_or_create
(userClass = qManger, action = rAction)
#refreshAction = orm.AuthorisedAction(userClass = qManger,
action = rAction)
so both get_or_create and trying to just instatiate a AuthorisedAction
object fail.
o yeah i know that you could achieve this with a fixture but the
project im working on has a hand crafted fixture like thing that i
don't want to have to rewrite (though i might try making my own
fixture for just this thing)