Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set field to string #11

Open
seawolf42 opened this issue Jun 6, 2018 · 1 comment
Open

Set field to string #11

seawolf42 opened this issue Jun 6, 2018 · 1 comment
Labels
backlog enhancement New feature or request help wanted Extra attention is needed

Comments

@seawolf42
Copy link
Owner

It would be very convenient if a user could use the field like this:

class MyModel(models.Model):
    lookup = LookupTableItemField(table_ref='abc')

instance = MyModel.objects.get(pk=some_pk)
instance.lookup = 'the name of an option'
instance.save()

This requires marshaling the field to find the right LookupTableItem for that value. If no such item exists, this should be an error.

@seawolf42 seawolf42 added enhancement New feature or request help wanted Extra attention is needed labels Jun 7, 2018
@seawolf42
Copy link
Owner Author

possibly relates to #27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog enhancement New feature or request help wanted Extra attention is needed
Projects
Development

No branches or pull requests

1 participant