Don't allow edit of vendor and effective date in catalog batches.

This may need to be tweaked in the future, but until then we'll be
conservative about it.
This commit is contained in:
Lance Edgar 2015-03-06 19:15:03 -06:00
parent d83ca4456a
commit 51e4eda662

View file

@ -127,6 +127,8 @@ class VendorCatalogCrud(FileBatchCrud):
del fs.effective del fs.effective
else: else:
del fs.parser_key del fs.parser_key
fs.vendor.set(readonly=True)
fs.effective.set(readonly=True)
def init_batch(self, batch): def init_batch(self, batch):
parser = require_catalog_parser(batch.parser_key) parser = require_catalog_parser(batch.parser_key)